shinydashboardPlus (version 0.7.0)

todoList: AdminLTE2 todo list container

Description

Create a todo list container

Usage

todoList(..., sortable = TRUE)

Arguments

...

slot for todoListItem.

sortable

Whether the list elements are sortable or not.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinydashboard)
 library(shinyjqui)
 shinyApp(
  ui = dashboardPage(
    dashboardHeader(),
    dashboardSidebar(),
    dashboardBody(
     box(
      "Sortable todo list demo",
      status = "warning",
      todoList(
        todoListItem(
          label = "Design a nice theme",
          "Some text here"
        ),
        todoListItem(
          label = "Make the theme responsive",
          "Some text here"
        ),
        todoListItem(
          checked = TRUE,
          label = "Let theme shine like a star"
        )
       )
      ),
      box(
      "Simple todo list demo",
      status = "warning",
      todoList(
      sortable = FALSE,
        todoListItem(
          label = "Design a nice theme",
          "Some text here"
        ),
        todoListItem(
          label = "Make the theme responsive",
          "Some text here"
        ),
        todoListItem(
          checked = TRUE,
          label = "Let theme shine like a star"
        )
       )
      )
    ),
    title = "Todo Lists"
  ),
  server = function(input, output) { }
 )
}

# }

Run the code above in your browser using DataCamp Workspace