Update R/`shinymod` snippet (#469)
* feat: update R shinymod snippet The previously used module syntax has been deprecated for quite some time
This commit is contained in:
parent
45a1b96e46
commit
e1f7015bae
|
@ -118,15 +118,17 @@
|
|||
"shinymod": {
|
||||
"prefix": "shinymod",
|
||||
"body": [
|
||||
"${1:name}_UI <- function(id) {",
|
||||
"${1:name}UI <- function(id) {",
|
||||
" ns <- NS(id)",
|
||||
" tagList(",
|
||||
" ${0}",
|
||||
" ${2}",
|
||||
" )",
|
||||
"}",
|
||||
"",
|
||||
"${1:name} <- function(input, output, session) {",
|
||||
" ",
|
||||
"${1:name}Server <- function(id) {",
|
||||
" moduleServer(id, function(input, output, session) {",
|
||||
" ${3}",
|
||||
" })",
|
||||
"}\n"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue