fix from masen changes
This commit is contained in:
parent
3b628b525d
commit
17776081a9
@ -39,22 +39,22 @@ class DrawerRoot(DrawerComponent):
|
|||||||
# Whether the drawer is open or not.
|
# Whether the drawer is open or not.
|
||||||
open: Var[bool]
|
open: Var[bool]
|
||||||
|
|
||||||
# Fires when the drawer is opened.
|
# Fires when the drawer is opened or closed.
|
||||||
on_open_change: EventHandler[identity_event(bool)]
|
on_open_change: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
# When `False`, it allows to interact with elements outside of the drawer without closing it. Defaults to `True`.
|
# When `False`, it allows interaction with elements outside of the drawer without closing it. Defaults to `True`.
|
||||||
modal: Var[bool]
|
modal: Var[bool]
|
||||||
|
|
||||||
# Direction of the drawer. This adjust the animations and the drag direction. Defaults to `"bottom"`
|
# Direction of the drawer. This adjusts the animations and the drag direction. Defaults to `"bottom"`
|
||||||
direction: Var[LiteralDirectionType]
|
direction: Var[LiteralDirectionType]
|
||||||
|
|
||||||
# Gets triggered after the open or close animation ends, it receives an open argument with the open state of the drawer by the time the function was triggered.
|
# Gets triggered after the open or close animation ends, it receives an open argument with the open state of the drawer by the time the function was triggered.
|
||||||
on_animation_end: EventHandler[identity_event(bool)]
|
on_animation_end: EventHandler[identity_event(bool)]
|
||||||
|
|
||||||
# When false dragging, clicking outside, pressing esc, etc. will not close the drawer. Use this in combination with the open prop, otherwise you won't be able to open/close the drawer.
|
# When `False`, dragging, clicking outside, pressing esc, etc. will not close the drawer. Use this in combination with the open prop, otherwise you won't be able to open/close the drawer.
|
||||||
dismissible: Var[bool]
|
dismissible: Var[bool]
|
||||||
|
|
||||||
# When true dragging will only be possible by the handle.
|
# When `True`, dragging will only be possible by the handle.
|
||||||
handle_only: Var[bool]
|
handle_only: Var[bool]
|
||||||
|
|
||||||
# Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
|
# Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
|
||||||
@ -69,7 +69,7 @@ class DrawerRoot(DrawerComponent):
|
|||||||
# When `True`, it prevents scroll restoration. Defaults to `True`.
|
# When `True`, it prevents scroll restoration. Defaults to `True`.
|
||||||
preventScrollRestoration: Var[bool]
|
preventScrollRestoration: Var[bool]
|
||||||
|
|
||||||
# Enable background scaling, it requires an element with [vaul-drawer-wrapper] data attribute to scale its background.
|
# Enable background scaling, it requires container element with `vaul-drawer-wrapper` attribute to scale its background.
|
||||||
should_scale_background: Var[bool]
|
should_scale_background: Var[bool]
|
||||||
|
|
||||||
# Number between 0 and 1 that determines when the drawer should be closed.
|
# Number between 0 and 1 that determines when the drawer should be closed.
|
||||||
|
@ -108,19 +108,19 @@ class ContextMenuContent(RadixThemesComponent):
|
|||||||
# Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
|
# Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
|
||||||
hide_when_detached: Var[bool]
|
hide_when_detached: Var[bool]
|
||||||
|
|
||||||
# Fired when the dialog is closed.
|
# Fired when focus moves back after closing.
|
||||||
on_close_auto_focus: EventHandler[empty_event]
|
on_close_auto_focus: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the escape key is pressed.
|
# Fired when the escape key is pressed.
|
||||||
on_escape_key_down: EventHandler[empty_event]
|
on_escape_key_down: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the pointer is down outside the dialog.
|
# Fired when a pointer down event happens outside the context menu.
|
||||||
on_pointer_down_outside: EventHandler[empty_event]
|
on_pointer_down_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when focus moves outside the dialog.
|
# Fired when focus moves outside the context menu.
|
||||||
on_focus_outside: EventHandler[empty_event]
|
on_focus_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
# Fired when the pointer interacts outside the dialog.
|
# Fired when the pointer interacts outside the context menu.
|
||||||
on_interact_outside: EventHandler[empty_event]
|
on_interact_outside: EventHandler[empty_event]
|
||||||
|
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ class ContextMenuItem(RadixThemesComponent):
|
|||||||
# When true, prevents the user from interacting with the item.
|
# When true, prevents the user from interacting with the item.
|
||||||
disabled: Var[bool]
|
disabled: Var[bool]
|
||||||
|
|
||||||
# Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
|
# Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
|
||||||
text_value: Var[str]
|
text_value: Var[str]
|
||||||
|
|
||||||
_valid_parents: List[str] = ["ContextMenuContent", "ContextMenuSubContent"]
|
_valid_parents: List[str] = ["ContextMenuContent", "ContextMenuSubContent"]
|
||||||
|
Loading…
Reference in New Issue
Block a user