We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, if you want to get the name of all keys in input, you need to do call:
input
list(input._map)
This is kind of a hack. It should be possible to call list(input) or input.keys() to get the keys.
list(input)
input.keys()
This app demonstrates (shinylive app):
from shiny import App, render, ui app_ui = ui.page_fluid( ui.h2("All input keys:"), ui.output_text_verbatim("txt"), ui.input_slider("slider", "A slider", 1, 100, 50), ) def server(input, output, session): @output @render.text def txt(): keys = list(input._map) keys_values = [f'input["{k}"] = {str(input[k]())}' for k in keys] return "\n".join(keys_values) app = App(app_ui, server)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, if you want to get the name of all keys in
input
, you need to do call:This is kind of a hack. It should be possible to call
list(input)
orinput.keys()
to get the keys.This app demonstrates (shinylive app):
The text was updated successfully, but these errors were encountered: