Repository navigation
Expand file tree
/
Copy pathShinyTesting.py
More file actions
84 lines (70 loc) · 1.86 KB
/
Copy pathShinyTesting.py
File metadata and controls
84 lines (70 loc) · 1.86 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
from shiny import App, render, ui
#thingamabob = ui.input_select(
# "select",
# "Select an option below:",
# {"1A": "Choice 1A", "1B": "Choice 1B", "1C": "Choice 1C"},
#)
mainpage = ui.navset_card_underline(
ui.nav_panel("Main Page",
"Value Text",
ui.card(
'maincard',
ui.output_text("mainvalue"))),
#ui.output_text("value"),
#title="This is the Main Page"
)
errorpage = ui.navset_card_underline(
ui.nav_panel("Error Table", None),
title="This is the Error Page"
)
datapage = ui.navset_card_underline(
ui.nav_panel("Data Table",None),
title="This is the Data Page"
)
tab_layout = ui.navset_pill(
ui.nav_panel("Main", mainpage),
ui.nav_panel("Errors","errorpage"),
ui.nav_panel("Data", "datapage")
)
tiers_dropdown = ui.input_select(id="tierSelect",
label = "Tier",
choices = {"stage":"Stage","dev2":"Dev2"},
selected = None,
multiple = False)
sidebar = ui.layout_sidebar(
ui.sidebar(
tiers_dropdown
)
)
"""
app_ui = ui.page_fixed(
ui.input_select(
"select",
"Select an option below:",
{"1A": "Choice 1A", "1B": "Choice 1B", "1C": "Choice 1C"},
),
ui.output_text("value"),
)
"""
#app_ui = ui.layout_columns(
# sidebar,
# tab_layout,
## ui.output_text("value"),
# col_widths=(3,7,2)
#)
app_ui = ui.page_fluid(
ui.layout_columns(
sidebar,
tab_layout,
ui.output_text("value"),
col_widths=(3,7,1)
)
)
def server(input, output, session):
@render.text
def value():
return f"{input.tierSelect()}"
@render.text
def mainvalue():
return f"{input.tierSelect()}"
app = App(app_ui, server)