|
@@ -8,9 +8,8 @@ from typing import Any, Callable, Dict, Literal, Optional, Union, overload
|
|
|
from reflex.components.component import ComponentNamespace
|
|
|
from reflex.components.el.elements.forms import Form as HTMLForm
|
|
|
from reflex.event import EventHandler, EventSpec
|
|
|
-from reflex.ivars.base import ImmutableVar
|
|
|
from reflex.style import Style
|
|
|
-from reflex.vars import Var
|
|
|
+from reflex.vars.base import Var
|
|
|
|
|
|
from .base import RadixPrimitiveComponentWithClassName
|
|
|
|
|
@@ -26,51 +25,41 @@ class FormComponent(RadixPrimitiveComponentWithClassName):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormComponent":
|
|
@@ -100,101 +89,89 @@ class FormRoot(FormComponent, HTMLForm):
|
|
|
cls,
|
|
|
*children,
|
|
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
|
- accept: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
accept_charset: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
auto_complete: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- enc_type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- no_validate: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ enc_type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ no_validate: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
|
|
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
|
|
- access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
auto_capitalize: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
content_editable: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
context_menu: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
enter_key_hint: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
- ] = None,
|
|
|
- hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
+ ] = None,
|
|
|
+ hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
style: Optional[Style] = None,
|
|
|
key: Optional[Any] = None,
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_clear_server_errors: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_submit: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormRoot":
|
|
@@ -258,51 +235,41 @@ class FormField(FormComponent):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormField":
|
|
@@ -339,51 +306,41 @@ class FormLabel(FormComponent):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormLabel":
|
|
@@ -417,51 +374,41 @@ class FormControl(FormComponent):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormControl":
|
|
@@ -510,6 +457,18 @@ class FormMessage(FormComponent):
|
|
|
name: Optional[Union[Var[str], str]] = None,
|
|
|
match: Optional[
|
|
|
Union[
|
|
|
+ Literal[
|
|
|
+ "badInput",
|
|
|
+ "patternMismatch",
|
|
|
+ "rangeOverflow",
|
|
|
+ "rangeUnderflow",
|
|
|
+ "stepMismatch",
|
|
|
+ "tooLong",
|
|
|
+ "tooShort",
|
|
|
+ "typeMismatch",
|
|
|
+ "valid",
|
|
|
+ "valueMissing",
|
|
|
+ ],
|
|
|
Var[
|
|
|
Literal[
|
|
|
"badInput",
|
|
@@ -524,18 +483,6 @@ class FormMessage(FormComponent):
|
|
|
"valueMissing",
|
|
|
]
|
|
|
],
|
|
|
- Literal[
|
|
|
- "badInput",
|
|
|
- "patternMismatch",
|
|
|
- "rangeOverflow",
|
|
|
- "rangeUnderflow",
|
|
|
- "stepMismatch",
|
|
|
- "tooLong",
|
|
|
- "tooShort",
|
|
|
- "typeMismatch",
|
|
|
- "valid",
|
|
|
- "valueMissing",
|
|
|
- ],
|
|
|
]
|
|
|
] = None,
|
|
|
force_match: Optional[Union[Var[bool], bool]] = None,
|
|
@@ -545,51 +492,41 @@ class FormMessage(FormComponent):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormMessage":
|
|
@@ -626,51 +563,41 @@ class FormValidityState(FormComponent):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormValidityState":
|
|
@@ -704,51 +631,41 @@ class FormSubmit(FormComponent):
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "FormSubmit":
|
|
@@ -779,101 +696,89 @@ class Form(FormRoot):
|
|
|
cls,
|
|
|
*children,
|
|
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
|
- accept: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
accept_charset: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
auto_complete: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- enc_type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- no_validate: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ enc_type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ no_validate: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
|
|
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
|
|
- access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
auto_capitalize: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
content_editable: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
context_menu: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
enter_key_hint: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
- ] = None,
|
|
|
- hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
+ ] = None,
|
|
|
+ hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
style: Optional[Style] = None,
|
|
|
key: Optional[Any] = None,
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_clear_server_errors: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_submit: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "Form":
|
|
@@ -935,101 +840,89 @@ class FormNamespace(ComponentNamespace):
|
|
|
def __call__(
|
|
|
*children,
|
|
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
|
- accept: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ accept: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
accept_charset: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ action: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
auto_complete: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- enc_type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- no_validate: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ enc_type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ method: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ no_validate: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
|
|
|
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
|
|
|
- access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
auto_capitalize: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
content_editable: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
context_menu: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
] = None,
|
|
|
- dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
enter_key_hint: Optional[
|
|
|
- Union[Var[Union[bool, int, str]], str, int, bool]
|
|
|
- ] = None,
|
|
|
- hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
- title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
|
|
|
+ Union[Var[Union[bool, int, str]], bool, int, str]
|
|
|
+ ] = None,
|
|
|
+ hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
+ title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
|
|
style: Optional[Style] = None,
|
|
|
key: Optional[Any] = None,
|
|
|
id: Optional[Any] = None,
|
|
|
class_name: Optional[Any] = None,
|
|
|
autofocus: Optional[bool] = None,
|
|
|
- custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
|
|
|
- on_blur: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
|
+ on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_clear_server_errors: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_context_menu: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_double_click: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_focus: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_mount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_mouse_down: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_enter: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_leave: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_move: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_out: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_over: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
on_mouse_up: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_scroll: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
- ] = None,
|
|
|
- on_submit: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
+ on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
+ on_submit: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
|
|
|
on_unmount: Optional[
|
|
|
- Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
|
|
|
+ Union[EventHandler, EventSpec, list, Callable, Var]
|
|
|
] = None,
|
|
|
**props,
|
|
|
) -> "Form":
|