mdl_text | R Documentation |
编写模块化的文本字段
mdl_text(id, label = "文本", value = "", is.test = FALSE)
id |
内码字段 |
label |
标签字段 |
value |
设置默认值 |
is.test |
是否测试模式 |
返回值
示例1 shiny应用程序:
library(shiny);
library(tsui);
ui <- fluidPage(
mdl_text('text1',label = '姓名',is.test = T),
mdl_text('text2',label = '密码',is.test = T)
)
server <- function(input, output, session) {
run_text_test('text1')
run_text_test('text2')
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.