Forráskód Böngészése

#276 fix documentation for input's on_change parameter

Falko Schindler 2 éve
szülő
commit
ad76177a57
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      nicegui/elements/input.py

+ 1 - 1
nicegui/elements/input.py

@@ -32,7 +32,7 @@ class Input(ValueElement, DisableableElement):
         :param value: the current value of the text input
         :param password: whether to hide the input (default: False)
         :param password_toggle_button: whether to show a button to toggle the password visibility (default: False)
-        :param on_change: callback to execute when the input is confirmed by leaving the focus
+        :param on_change: callback to execute when the value changes
         :param validation: dictionary of validation rules, e.g. ``{'Too short!': lambda value: len(value) < 3}``
         """
         super().__init__(tag='q-input', value=value, on_value_change=on_change)