| Title: | 'Shiny' UI Prototype Builder | 
| Version: | 0.3.0 | 
| Description: | A 'shiny' application that enables the user to create a prototype UI, being able to drag and drop UI components before being able to save or download the equivalent R code. | 
| License: | MIT + file LICENSE | 
| URL: | https://ashbaldry.github.io/designer/, https://ashbaldry.shinyapps.io/designer/ | 
| BugReports: | https://github.com/ashbaldry/designer/issues | 
| Imports: | bs4Dash, bslib, cicerone, config (≥ 0.3.1), fontawesome, golem (≥ 0.3.1), htmltools, jsonlite, rappdirs, shinipsum, shiny (≥ 1.7.1), shinyscreenshot | 
| Suggests: | chromote, knitr, lintr, rmarkdown, shinytest2, testthat (≥ 3.0.0) | 
| VignetteBuilder: | knitr | 
| Config/testthat/edition: | 3 | 
| Encoding: | UTF-8 | 
| Language: | en-GB | 
| RoxygenNote: | 7.2.3 | 
| NeedsCompilation: | no | 
| Packaged: | 2023-08-20 10:36:07 UTC; arbal | 
| Author: | Ashley Baldry [cre, aut], Sam Parmar [ctb] | 
| Maintainer: | Ashley Baldry <arbaldry91@gmail.com> | 
| Repository: | CRAN | 
| Date/Publication: | 2023-08-20 12:42:37 UTC | 
designer: 'Shiny' UI Prototype Builder
Description
To learn more about designer, have a read of the vignette: vignette("designer")
Author(s)
Maintainer: Ashley Baldry arbaldry91@gmail.com
Other contributors:
- Sam Parmar parmartsam@gmail.com [contributor] 
See Also
Useful links:
- Report bugs at https://github.com/ashbaldry/designer/issues 
Bootstrap Component Inputs
Description
A way to be able to adjust components so that can more easily visualise how the shiny application will look.
Usage
compSettingTag(id, choices = NULL)
compSettingType(id, choices)
compSettingPlot(id)
compSettingValue(id)
compSettingLabel(id, label = "Label", optional = FALSE)
compSettingID(id)
compSettingIcon(id)
compSettingColour(id, status = FALSE)
compSettingBackground(id)
compSettingFill(id, label = "Fill Whole Box")
compSettingText(id, value = NULL)
compSettingTextArea(id)
compSettingChoices(id)
compSettingRange(id)
compSettingInline(id)
compSettingDownload(id)
compSettingWidth(id)
compSettingHeight(id)
compSettingWidthNum(id, value = 3L, min = 1L)
compSettingOffset(id)
Arguments
| id | Namespace to include the component | 
| choices | A vector of potential choices to include in the component | 
| label | Label of the input | 
| optional | Logical, is the input optional? | 
| status | Logical, are only status colours allowed, default is  | 
| value | Value given to the component input | 
| min | Minimum value given to the component input | 
Value
A shiny.tag.list of settings specific to the selected component
See Also
Component Settings Shell
Description
A container for the specified component input
Usage
component(id, ...)
componentTab(id)
Arguments
| id | The ID of the component input | 
| ... | Shiny tags to include inside the component | 
Details
The tab component contains a selection of specific inputs related to adding a new tab, as the events to create it in the UI are different to the other components
Value
A shiny.tag of the component settings
Run the Shiny Application
Description
Runs the designer Shiny application.
For more information about how the application works, either run the "Help" guide in-app, or run
vignette("designer").
Usage
designApp(
  onStart = NULL,
  options = list(),
  enableBookmarking = "url",
  uiPattern = "/",
  ...
)
Arguments
| onStart | A function that will be called before the app is actually run.
This is only needed for  | 
| options | Named options that should be passed to the  | 
| enableBookmarking | Can be one of  | 
| uiPattern | A regular expression that will be applied to each  | 
| ... | arguments to pass to  | 
Value
This function does not return a value; interrupt R to stop the application (usually by pressing Ctrl+C or Esc).
Examples
designApp()
Component Accordion Item
Description
An item to add to the sidebar that opens up the settings for the selected component
Usage
sidebarItem(id, name, element, parent_id, ..., notes = NULL, active = FALSE)
Arguments
| id | HTML ID to namespace on | 
| name | Label to show on the closed accordion | 
| element | Character string to let JS know what component has been chosen | 
| parent_id | HTML ID of the accordion | 
| ... | Option inputs to add when expanding the accordion item | 
| notes | A list of optional notes to include at the bottom of the settings | 
| active | Logical, should the accordion item be open on start? Default set to  | 
Value
A shiny.tag element containing the component accordion item with all input settings