renderDesc: Render some collapsible markdown text

Description Usage Arguments Value Examples

View source: R/spsUIcollections.R

Description

write some text in markdown format and it will help you render to markdown, use shiny::markdown but it is collapsible.

Usage

1
renderDesc(id, desc)

Arguments

id

element ID

desc

one character string in markdown format

Value

HTML elements

Examples

 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
if(interactive()){
    desc <-
        "
    # Some desc
    - xxxx
    - bbbb

    This is a [link](https://www.google.com/).

    `Some other things`
    > other markdown things

    1. aaa
    2. bbb
    3. ccc
    "
    ui <- fluidPage(
        renderDesc(id = "desc", desc),
    )

    server <- function(input, output, session) {

    }

    shinyApp(ui, server)
}

spsComps documentation built on Feb. 3, 2022, 1:07 a.m.