Getting input text of ui.select
#1917
Closed
adarshpunj
started this conversation in
Ideas / Feature Requests
Replies: 2 comments 2 replies
-
According to https://quasar.dev/vue-components/select/ you should be able to use ui.select([1, 2, 3], value=1, with_input=True).on('input-value', lambda e: print(e.args))) But it does not work for some reason. Other events like "blur" work as expected when used with https://nicegui.io/documentation#generic_events |
Beta Was this translation helpful? Give feedback.
2 replies
-
It looks like we all got confused by NiceGUI expecting camelCase as event type: ui.select([1, 2, 3], value=1, with_input=True).on('inputValue', lambda e: print(e.args)) Luckily version 1.4.6, which will be released shortly, will also support kebab-case: ui.select([1, 2, 3], value=1, with_input=True).on('input-value', lambda e: print(e.args)) I'll close this feature request as completed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Is there a direct way to get the input text (whatever the user types) from ui.select? If not, can it be implemented, given that it inherits from
ValueElement
?This will be helpful if we want to populate the
options
from an external source, based on the text entered by the user.Beta Was this translation helpful? Give feedback.
All reactions