todoList: AdminLTE2 todo list container

Description Usage Arguments Author(s) Examples

View source: R/useful-items.R

Description

Create a todo list container. May be included in box.

todoListItem creates a todo list item.

Usage

1
2
3
todoList(..., sortable = TRUE)

todoListItem(..., checked = FALSE, label = NULL)

Arguments

...

any element such as labels, ...

sortable

Whether the list elements are sortable or not.

checked

Whether the list item is checked or not.

label

item label.

Author(s)

David Granjon, dgranjon@ymail.com

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
if (interactive()) {
 library(shiny)
 library(shinydashboard)
 library(shinyjqui)
 library(shinydashboardPlus)
 
 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) { }
 )
}

shinydashboardPlus documentation built on Sept. 16, 2021, 1:06 a.m.