uirender: Render semanticui htmlwidget

Description Usage Arguments Examples

View source: R/uirender.R

Description

htmlwidget that adds semanticui dependencies and renders in viewer or rmarkdown.

Usage

1
uirender(ui, width = NULL, height = NULL, element_id = NULL)

Arguments

ui

UI, which will be wraped in an htmlwidget.

width

Fixed width for widget (in css units). The default is NULL, which results in intelligent automatic sizing.

height

Fixed height for widget (in css units). The default is NULL, which results in intelligent automatic sizing.

element_id

Use an explicit element ID for the widget (rather than an automatically generated one).

Examples

1
2
3
4
5
6
library(shiny)
library(shiny.semantic)
uirender(card(div(class="content",
                  div(class="header", "Elliot Fu"),
                  div(class="meta", "Friend"),
                  div(class="description", "Elliot Fu is a film-maker from New York."))))

shiny.semantic documentation built on Nov. 7, 2021, 5:07 p.m.