selectGroupsUI | R Documentation |
Group selection interface and logic
selectGroupsUI(
id,
label,
type,
placeholder = "Type to search groups",
noGroupsLabel = NULL,
groupsLabel = NULL,
maxItems = NULL,
returnAllDataLabel = NULL,
returnAllDataValue = FALSE
)
selectGroupsServer(session, id, type, preference = NULL)
getSelectedGroups(input, id, type, filter = NULL)
id |
Character: identifier |
label |
Character: |
type |
Character: type of groups (either |
placeholder |
Character: |
noGroupsLabel |
Character: label to explicitly allow to select no groups
(if |
groupsLabel |
Character: label to explicitly allow to select groups
(only required if |
maxItems |
Numeric: maximum number of groups to select |
returnAllDataLabel |
Character: label to allow to return data outside
selected groups as belonging to an outside group (if |
returnAllDataValue |
Boolean: default value to whether return all data
or not (only required if |
session |
Shiny session |
preference |
Character: name of groups to pre-select, when available
(if |
input |
Shiny input |
filter |
Character: get groups only if they are present in this argument (if TCGA-styled gene symbols, they will be "converted" to gene symbols alone) |
selectGroupsUI
: Interface for group selection
selectGroupsServer
: Server logic for group selection
getSelectedGroups
: List with selected groups (or NULL
when no groups are selected)
To allow the user to (explicitly) select no groups, pass the
noGroupsLabel
and groupsLabel
arguments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.