File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed
shiny/api-examples/update_nav_panel
tests/playwright/shiny/components Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 2828
2929
3030def server (input : Inputs , output : Outputs , session : Session ):
31- @reactive .effect ()
31+ @reactive .effect
3232 @reactive .event (input .hideTab )
3333 def _ ():
3434 ui .update_nav_panel ("tabs" , target = "Foo" , method = "hide" )
3535
36- @reactive .effect ()
36+ @reactive .effect
3737 @reactive .event (input .showTab )
3838 def _ ():
3939 ui .update_nav_panel ("tabs" , target = "Foo" , method = "show" )
4040
41- @reactive .effect ()
41+ @reactive .effect
4242 @reactive .event (input .hideMenu )
4343 def _ ():
4444 ui .update_nav_panel ("tabs" , target = "More" , method = "hide" )
4545
46- @reactive .effect ()
46+ @reactive .effect
4747 @reactive .event (input .showMenu )
4848 def _ ():
4949 ui .update_nav_panel ("tabs" , target = "More" , method = "show" )
Original file line number Diff line number Diff line change 2424 with ui .nav_panel ("Email" ):
2525 "Email page"
2626
27- @reactive .effect ()
27+ @reactive .effect
2828 @reactive .event (input .hideTab )
2929 def _ ():
3030 ui .update_nav_panel ("tabs" , target = "Foo" , method = "hide" )
3131
32- @reactive .effect ()
32+ @reactive .effect
3333 @reactive .event (input .showTab )
3434 def _ ():
3535 ui .update_nav_panel ("tabs" , target = "Foo" , method = "show" )
3636
37- @reactive .effect ()
37+ @reactive .effect
3838 @reactive .event (input .hideMenu )
3939 def _ ():
4040 ui .update_nav_panel ("tabs" , target = "More" , method = "hide" )
4141
42- @reactive .effect ()
42+ @reactive .effect
4343 @reactive .event (input .showMenu )
4444 def _ ():
4545 ui .update_nav_panel ("tabs" , target = "More" , method = "show" )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def _():
4141 position = "before" ,
4242 )
4343
44- @reactive .effect ()
44+ @reactive .effect
4545 @reactive .event (input .add )
4646 def _ ():
4747 id = "Dynamic-" + str (input .add ())
@@ -52,12 +52,12 @@ def _():
5252 position = "before" ,
5353 )
5454
55- @reactive .effect ()
55+ @reactive .effect
5656 @reactive .event (input .removeFoo )
5757 def _ ():
5858 ui .remove_nav_panel ("tabs" , target = "Foo" )
5959
60- @reactive .effect ()
60+ @reactive .effect
6161 @reactive .event (input .addFoo )
6262 def _ ():
6363 n = str (input .addFoo ())
@@ -69,22 +69,22 @@ def _():
6969 select = True ,
7070 )
7171
72- @reactive .effect ()
72+ @reactive .effect
7373 @reactive .event (input .hideTab )
7474 def _ ():
7575 ui .update_nav_panel ("tabs" , target = "Foo" , method = "hide" )
7676
77- @reactive .effect ()
77+ @reactive .effect
7878 @reactive .event (input .showTab )
7979 def _ ():
8080 ui .update_nav_panel ("tabs" , target = "Foo" , method = "show" )
8181
82- @reactive .effect ()
82+ @reactive .effect
8383 @reactive .event (input .hideMenu )
8484 def _ ():
8585 ui .update_nav_panel ("tabs" , target = "Menu" , method = "hide" )
8686
87- @reactive .effect ()
87+ @reactive .effect
8888 @reactive .event (input .showMenu )
8989 def _ ():
9090 ui .update_nav_panel ("tabs" , target = "Menu" , method = "show" )
Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ def _():
1919 "This is the second panel" ,
2020 )
2121
22- @reactive .effect ()
22+ @reactive .effect
2323 @reactive .event (input .showTab )
2424 def _ ():
2525 ui .update_nav_panel ("navset" , target = "Panel 2" , method = "show" )
2626
27- @reactive .effect ()
27+ @reactive .effect
2828 @reactive .event (input .hideTab )
2929 def _ ():
3030 ui .update_nav_panel ("navset" , target = "Panel 2" , method = "hide" )
3131
32- @reactive .effect ()
32+ @reactive .effect
3333 @reactive .event (input .deleteTabs )
3434 def _ ():
3535 ui .remove_nav_panel ("navset" , "Panel 2" )
You can’t perform that action at this time.
0 commit comments