Skip to main content

Module toggle

Module toggle 

Source
Expand description

Toggle element (ArkUI Toggle).

Constants§

NAME_SPACE
Namespace for all ArkUI elements.
TAG_NAME
The canonical lowercase ArkUI tag used as the Dioxus element name.
accessibility_actions
Supported action names separated by |, for example click|long_click, or the equivalent bit mask.
accessibility_checked
Explicit checked state exposed to accessibility services.
accessibility_description
Additional accessibility hint or description for this node.
accessibility_disabled
Explicit disabled state exposed to accessibility services.
accessibility_group
Whether this node and its descendants form one accessibility target.
accessibility_mode
Accessibility exposure mode: auto, enabled, disabled, or disabled_for_descendants.
accessibility_role
Semantic role. Accepts ArkUI role names such as button, checkbox, radio, switch, slider, progress, and text.
accessibility_selected
Explicit selected state exposed to accessibility services.
accessibility_text
Text announced by accessibility services for this node.
accessibility_value_current
Integer current value for range controls.
accessibility_value_max
Integer maximum value for range controls.
accessibility_value_min
Integer minimum value for range controls.
accessibility_value_range_current
API-18 range current value.
accessibility_value_range_max
API-18 range maximum value.
accessibility_value_range_min
API-18 range minimum value.
accessibility_value_text
Human-readable value announced for a range or stateful control.
aspect_ratio
axis_capture
Consume wheel/touchpad events before ancestor scrolling.
background_color
border_color
border_radius
border_width
checked
clip
custom_shadow
enabled
focus_navigation
Native roving focus for a vertical or horizontal list.
focus_on_touch
focus_scope
Move focus into this subtree on mount and restore it on removal.
focus_trap
Keep Tab and Shift+Tab within the active focus scope.
focusable
height
hit_test_behavior
key_capture
Keys consumed synchronously before ArkUI’s default behavior.
margin
margin_bottom
margin_horizontal
margin_left
margin_right
margin_top
margin_vertical
margin_x
margin_y
native_ref
Bind this exact logical element to a NativeElementRef.
opacity
padding
position
shadow
toggle_selected_color
toggle_switch_point_color
toggle_unselected_color
visibility
width
z_index