@@ -4,27 +4,25 @@ extract_content <- function(html_tag, selector) {
4
4
5
5
test_app <- function () {
6
6
shiny :: shinyApp(
7
- ui =
8
- shiny :: fluidPage(
9
- use_empty_state(),
10
- shiny :: actionButton(" show" , " Show empty state!" ),
11
- shiny :: actionButton(" hide" , " Hide empty state!" ),
12
- shiny :: tableOutput(" my_table" )
13
- ),
14
- server =
15
- function (input , output ) {
16
- empty_state_content <- htmltools :: div(class = " myDiv" )
17
- empty_state_manager <-
18
- EmptyStateManager $ new(
19
- id = " my_table" ,
20
- html_content = empty_state_content )
21
- shiny :: observeEvent(input $ show , {
22
- empty_state_manager $ show()
23
- })
24
- shiny :: observeEvent(input $ hide , {
25
- empty_state_manager $ hide()
26
- })
27
- output $ my_table <- shiny :: renderTable(data.frame (NA ))
28
- }
7
+ ui = shiny :: fluidPage(
8
+ use_empty_state(),
9
+ shiny :: actionButton(" show" , " Show empty state!" ),
10
+ shiny :: actionButton(" hide" , " Hide empty state!" ),
11
+ shiny :: tableOutput(" my_table" )
12
+ ),
13
+ server = function (input , output ) {
14
+ empty_state_content <- htmltools :: div(class = " myDiv" )
15
+ empty_state_manager <- EmptyStateManager $ new(
16
+ id = " my_table" ,
17
+ html_content = empty_state_content
18
+ )
19
+ shiny :: observeEvent(input $ show , {
20
+ empty_state_manager $ show()
21
+ })
22
+ shiny :: observeEvent(input $ hide , {
23
+ empty_state_manager $ hide()
24
+ })
25
+ output $ my_table <- shiny :: renderTable(data.frame (NA ))
26
+ }
29
27
)
30
28
}
0 commit comments