Skip to content

Commit 73e1106

Browse files
committed
Replace output_text_verbatim with output_code in UI
1 parent 7dfc866 commit 73e1106

File tree

41 files changed

+87
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+87
-89
lines changed

examples/brand/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
),
5353
ui.card(
5454
ui.card_header("Text Output"),
55-
ui.output_text_verbatim("out_text1"),
55+
ui.output_code("out_text1"),
5656
),
5757
),
5858
),

shiny/api-examples/ClientData/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
to reactively read the client data values from the browser.
2020
"""
2121
),
22-
ui.output_text_verbatim("clientdatatext"),
22+
ui.output_code("clientdatatext"),
2323
ui.output_plot("myplot"),
2424
)
2525

shiny/api-examples/Renderer/app-core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
ui.h1("Capitalization renderer"),
1010
ui.input_text("caption", "Caption:", "Data summary"),
1111
"@render_upper: ",
12-
ui.output_text_verbatim("upper", placeholder=True),
12+
ui.output_code("upper", placeholder=True),
1313
"@render_upper(): ",
14-
ui.output_text_verbatim("upper_with_paren", placeholder=True),
14+
ui.output_code("upper_with_paren", placeholder=True),
1515
"@render_capitalize: ",
16-
ui.output_text_verbatim("cap_upper", placeholder=True),
16+
ui.output_code("cap_upper", placeholder=True),
1717
"@render_capitalize(to='lower'): ",
18-
ui.output_text_verbatim("cap_lower", placeholder=True),
18+
ui.output_code("cap_lower", placeholder=True),
1919
)
2020

2121

shiny/api-examples/accordion/app-core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def make_items():
2525
ui.markdown("#### Accordion: (`multiple=False`)"),
2626
# Provide an id to create a shiny input binding
2727
ui.accordion(*make_items(), id="acc_single", multiple=False),
28-
ui.output_text_verbatim("acc_single_val", placeholder=True),
28+
ui.output_code("acc_single_val", placeholder=True),
2929
ui.tags.br(),
3030
ui.markdown("#### Accordion: (`multiple=True`)"),
3131
ui.accordion(*make_items(), id="acc_multiple"),
32-
ui.output_text_verbatim("acc_multiple_val", placeholder=True),
32+
ui.output_code("acc_multiple_val", placeholder=True),
3333
)
3434

3535

shiny/api-examples/accordion_panel/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Provide an id to create a shiny input binding
1010
ui.accordion(*items, id="acc"),
1111
ui.h4("Accordion:"),
12-
ui.output_text_verbatim("acc_val", placeholder=True),
12+
ui.output_code("acc_val", placeholder=True),
1313
)
1414

1515

shiny/api-examples/calc/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ui.input_action_button("first", "Invalidate first (slow) computation"),
1010
ui.input_action_button("second", "Invalidate second (fast) computation"),
1111
),
12-
ui.output_text_verbatim("result"),
12+
ui.output_code("result"),
1313
)
1414
)
1515

shiny/api-examples/input_numeric/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
app_ui = ui.page_fluid(
44
ui.input_numeric("obs", "Observations:", 10, min=1, max=100),
5-
ui.output_text_verbatim("value"),
5+
ui.output_code("value"),
66
)
77

88

shiny/api-examples/input_password/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
app_ui = ui.page_fluid(
44
ui.input_password("password", "Password:"),
55
ui.input_action_button("go", "Go"),
6-
ui.output_text_verbatim("value"),
6+
ui.output_code("value"),
77
)
88

99

shiny/api-examples/input_text/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
app_ui = ui.page_fluid(
44
ui.input_text("caption", "Caption:", "Data summary"),
5-
ui.output_text_verbatim("value"),
5+
ui.output_code("value"),
66
)
77

88

shiny/api-examples/input_text_area/app-core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"Caption:",
77
"Data summary\nwith\nmultiple\nlines",
88
),
9-
ui.output_text_verbatim("value_regular", placeholder=True),
9+
ui.output_code("value_regular", placeholder=True),
1010
ui.input_text_area(
1111
"caption_autoresize",
1212
ui.markdown("Caption (w/ `autoresize=True`):"),
1313
"Data summary\nwith\nmultiple\nlines",
1414
autoresize=True,
1515
),
16-
ui.output_text_verbatim("value_autoresize", placeholder=True),
16+
ui.output_code("value_autoresize", placeholder=True),
1717
)
1818

1919

0 commit comments

Comments
 (0)