Skip to main content

Module scroll

Module scroll 

Source
Expand description

Scroll container (ArkUI Scroll).

scroll_bar: scrollbar visibility — false/"off"/0 hide, "auto"/1 auto-fade, true/"on"/2 always show.

scroll_offset is a one-shot "x,y[,duration,...]" scroll command. It is consumed after native attachment and is not declarative state.

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.
alignment
aspect_ratio
axis_capture
Consume wheel/touchpad events before ancestor scrolling.
background_color
border_color
border_radius
border_width
clip
constraint_size
enabled
focus_navigation
Native roving focus for a vertical or horizontal list.
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.
height
hit_test_behavior
key_capture
Keys consumed synchronously before ArkUI’s default behavior.
layout_weight
margin
margin_bottom
margin_horizontal
margin_left
margin_right
margin_top
margin_vertical
margin_x
margin_y
max_height
max_width
min_height
min_width
native_ref
Bind this exact logical element to a NativeElementRef.
opacity
padding
position
scroll_bar
scroll_direction
scroll_edge_effect
scroll_enabled
scroll_offset
visibility
width
z_index