Skip to content
New issue

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

gr. Datetime is missing a param interactive: bool #9957

Closed
1 task done
Isuxiz opened this issue Nov 14, 2024 · 1 comment · Fixed by #10013
Closed
1 task done

gr. Datetime is missing a param interactive: bool #9957

Isuxiz opened this issue Nov 14, 2024 · 1 comment · Fixed by #10013
Labels
enhancement New feature or request

Comments

@Isuxiz
Copy link

Isuxiz commented Nov 14, 2024

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
As the title says, some components do not have a boolean parameter like other components (gr.TextBox, gr.Dropdown, gr.Radio, gr.Checkbox, etc.) to control whether the user can edit its value. I have only found two such components as mentioned in title so far, but there may be more components that have this problem.

Describe the solution you'd like
Add an interactive: bool parameter to these components to explicitly control whether the component can be edited.

Additional context
My motivation is as follows. Consider these two scenarios:

  1. Your application requires multiple phased steps, and you only want the parameter input controls of the subsequent steps to become interactive after the previous step is successfully completed.
  2. You are very clear that a component is only used to display output, and you don't want users to modify (perhaps accidentally) its displayed value.
@abidlabs abidlabs added the enhancement New feature or request label Nov 14, 2024
@abidlabs
Copy link
Member

Hi @Isuxiz the gr.JSON component doesn't support any interactivity (you can't edit the value), so I don't think an interactive parameter is needed for that component. But I do agree that gr.Datetime should have this parameter

@abidlabs abidlabs changed the title gr.JSON gr.Datetime need param interactive: bool gr.JSON is missing a param interactive: bool Nov 16, 2024
@abidlabs abidlabs changed the title gr.JSON is missing a param interactive: bool gr. Datetime is missing a param interactive: bool Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants