Description Usage Arguments Examples
Build a materialize text input
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | material_text(inputId, label, placeholder = NULL, inline = FALSE,
readonly = FALSE, help = NULL, type = "text", class = NULL,
icon = NULL, color = NULL, error = "wrong", success = "valid")
material_number(inputId, label, placeholder = NULL, inline = FALSE,
readonly = FALSE, help = NULL, class = NULL, icon = NULL,
color = NULL)
material_email(inputId, label, placeholder = NULL, inline = FALSE,
readonly = FALSE, help = NULL, class = NULL, icon = NULL,
color = NULL)
material_password(inputId, label, placeholder = NULL, inline = FALSE,
readonly = FALSE, help = NULL, class = NULL, icon = NULL,
color = NULL)
material_date(inputId, label, placeholder = NULL, inline = FALSE,
readonly = FALSE, help = NULL, class = NULL, icon = NULL,
color = NULL)
material_time(inputId, label, placeholder = NULL, inline = FALSE,
readonly = FALSE, help = NULL, class = NULL, icon = NULL,
color = NULL)
update_material_text(inputId, value = NULL, label = NULL,
placeholder = NULL, readonly = NULL, help = NULL,
session = shiny::getDefaultReactiveDomain())
update_material_number(inputId, value = NULL, label = NULL,
placeholder = NULL, readonly = FALSE, help = NULL,
session = shiny::getDefaultReactiveDomain())
update_material_email(inputId, value = NULL, label = NULL,
placeholder = NULL, readonly = FALSE, help = NULL,
session = shiny::getDefaultReactiveDomain())
update_material_password(inputId, value = NULL, label = NULL,
placeholder = NULL, readonly = FALSE, help = NULL,
session = shiny::getDefaultReactiveDomain())
update_material_date(inputId, value = NULL, label = NULL,
placeholder = NULL, readonly = FALSE, help = NULL,
session = shiny::getDefaultReactiveDomain())
|
inputId |
String. The input identifier used to access the value. |
label |
String. The text input label. |
placeholder |
String. The placeholder of the text input |
inline |
Logical. The text input should be inline with others elements?. Value should be TRUE or FALSE |
readonly |
Logical. The text input should be read-only?. Value should be TRUE or FALSE |
help |
String. The helper text below text input. |
type |
String. The type of the text input. Valiue should be text, number, email, password, time, date |
class |
String. Additional class for text input. |
icon |
String. The name of the icon. Leave empty for no icon. Visit http://materializecss.com/icons.html for a list of available icons. |
color |
String. The color name of the text input. Leave empty for 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors. |
error |
String. Validate mensage when is not valid |
success |
String. Validate mensage when is valid |
value |
String or Numeric. The value to update the input. |
session |
Shiny default reactive domain. |
1 2 3 4 5 6 | require(materializer)
material_text(
inputId = "example_text",
label = "Label",
color = 'teal lighten-1'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.