Title: | 'Shiny' UI Prototype Builder |
---|---|
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. |
Authors: | Ashley Baldry [cre, aut], Sam Parmar [ctb] |
Maintainer: | Ashley Baldry <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.0 |
Built: | 2024-10-29 04:17:20 UTC |
Source: | https://github.com/ashbaldry/designer |
A container for the specified component input
component(id, ...) componentTab(id)
component(id, ...) componentTab(id)
id |
The ID of the component input |
... |
Shiny tags to include inside the component |
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
A shiny.tag of the component settings
A way to be able to adjust components so that can more easily visualise how the shiny application will look.
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)
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)
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 |
A shiny.tag.list
of settings specific to the selected component
Runs the designer Shiny application.
For more information about how the application works, either run the "Help" guide in-app, or run
vignette("designer")
.
designApp( onStart = NULL, options = list(), enableBookmarking = "url", uiPattern = "/", ... )
designApp( onStart = NULL, options = list(), enableBookmarking = "url", uiPattern = "/", ... )
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 |
This function does not return a value; interrupt R to stop the application (usually by pressing Ctrl+C or Esc).
designApp()
designApp()
An item to add to the sidebar that opens up the settings for the selected component
sidebarItem(id, name, element, parent_id, ..., notes = NULL, active = FALSE)
sidebarItem(id, name, element, parent_id, ..., notes = NULL, active = FALSE)
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 |
A shiny.tag
element containing the component accordion item with all input settings