-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathex-drop-menu-inception.R
50 lines (43 loc) · 1.02 KB
/
ex-drop-menu-inception.R
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
if (interactive()) {
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
tags$h2("Drop Menu Inception"),
dropMenu(
actionButton("open", "See what's inside"),
options = list(distance = 0),
arrow = FALSE,
trigger = c("mouseenter", "focus"),
dropMenu(
actionButton("open1", "Menu 1"),
"Menu 1",
placement = "right"
),
dropMenu(
actionButton("open2", "Menu 2"),
trigger = "mouseenter",
"Menu 2",
placement = "right"
),
dropMenu(
actionButton("open3", "Menu 3"),
trigger = "mouseenter",
dropMenu(
actionButton("open3a", "Menu 3 A"),
"Menu 3 A",
placement = "right"
),
dropMenu(
actionButton("open3b", "Menu 3 B"),
trigger = "mouseenter",
"Menu 3 B",
placement = "right"
),
placement = "right"
)
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}