Description Usage Arguments See Also Examples
UI part of the form module (edit dialog) for editing the data of the crudTableServer
1 2 3 4 5 6 7 8 |
id |
Shiny module identifier of the edit dialog as set by the |
... |
The definition of the form, i.e. the shiny input elements whose IDs must be
named after the attribute names, as expected by the DAO (see |
newTitle |
A form title used for new data input |
editTitle |
A form title used for existing data update |
submitLabel |
Label of the submit button |
cancelLabel |
Label of the cancel button |
formServerFactory
, crudTableServer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# A typical use of the formUI - create an edit dialog for the crudTable:
myFormUI <- function(id) {
# create namespace - note the use of ns() below in *Input calls
ns <- NS(id)
formUI(id,
selectInput(ns('Plant'), 'Plant', choices = levels(CO2$Plant)),
selectInput(ns('Type'), 'Type', choices = levels(CO2$Type)),
selectInput(ns('Treatment'), 'Treatment', choices = levels(CO2$Treatment)),
numericInput(ns('conc'), 'Ambient CO2 concentration [ml/L]',
value = 100, min = 50, max = 1000),
numericInput(ns('uptake'), 'CO2 uptake rates [umol/m2 sec]',
value = 0, min = 0, max = 100)
)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.