Description Usage Arguments Value See Also
View source: R/addEditModules.R
This function and addEditUI are used in conjection to add the UI and server elements necessary to add a row to a given table in a database
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
input, output, session |
These parameters are handled by
|
addTitle |
Title to display at the top of the add Modal |
editTitle |
Title to display at the top of the edit Modal |
modalUI |
Function that creates the modal UI. |
inputData |
a
|
reactiveData |
Reactive which stores all of the tables from the database
as seperate |
staticChoices |
|
checkDuplicate |
character vector specifing which fields to check for possible duplication. Default value is null, and no fields are checked for duplicates |
db |
a |
dbTable |
The database table the new data will be added to. |
dtRow |
Reactive which stores the row selected in the datatable |
Shiny observeEvent
's which control actions when
the add button is pressed, as well as the save button in the modal.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.