|
@@ -5,7 +5,7 @@ from .icon import Icon
|
|
|
from .mixins.disableable_element import DisableableElement
|
|
|
from .mixins.validation_element import ValidationElement
|
|
|
|
|
|
-register_component('ng_input', __file__, 'input.js')
|
|
|
+register_component('nicegui-input', __file__, 'input.js')
|
|
|
|
|
|
|
|
|
class Input(ValidationElement, DisableableElement):
|
|
@@ -41,7 +41,7 @@ class Input(ValidationElement, DisableableElement):
|
|
|
:param autocomplete: optional list of strings for autocompletion
|
|
|
:param validation: dictionary of validation rules, e.g. ``{'Too long!': lambda value: len(value) < 3}``
|
|
|
"""
|
|
|
- super().__init__(tag='ng_input', value=value, on_value_change=on_change, validation=validation)
|
|
|
+ super().__init__(tag='nicegui-input', value=value, on_value_change=on_change, validation=validation)
|
|
|
if label is not None:
|
|
|
self._props['label'] = label
|
|
|
if placeholder is not None:
|