Learn R Programming

shiny.semantic (version 0.3.0)

simple_checkbox: Create Semantic UI checkbox

Description

This creates a checkbox using Semantic UI styles.

Usage

simple_checkbox(id, label, type = NULL, is_marked = TRUE, style = NULL)

Arguments

id

Input name. Reactive value is available under input[[name]].

label

Text to be displayed with checkbox.

type

Type of checkbox.

is_marked

Defines if checkbox should be marked. Default TRUE.

style

Style of the widget.

Details

The inputs are updateable by using updateCheckboxInput.

The following types are allowed:

  • NULLThe standard checkbox (default)

  • toggleEach checkbox has a toggle form

  • sliderEach checkbox has a simple slider form

Examples

Run this code
# NOT RUN {
simple_checkbox("example", "Check me", is_marked = FALSE)

# }

Run the code above in your browser using DataLab