Marc PASTEUR d132f39ff8 move lvgl
2025-12-19 18:08:19 +01:00

27 lines
1.1 KiB
XML

<!--
Example
<lv_roller options="'a\nb\nc\nd' infinite" selected="2 true" visible_row_count="3"/>
-->
<widget>
<api>
<enumdef name="lv_roller_mode" help="How the roller scrolls">
<enum name="normal" help="Stop at first and last option"/>
<enum name="infinite" help="Scroll endlessly in a loop"/>
</enumdef>
<prop name="options" help="Set the roller options">
<param name="options" type="string" help="Options as a newline (`\n`) separated string"/>
<param name="mode" type="enum:lv_roller_mode" default="normal" help="Set the roller mode (reference as `options-mode`)"/>
</prop>
<prop name="selected" help="Set the selected option">
<param name="selected" type="int" help="Index of the selected option (0-based)"/>
<param name="animated" type="bool" default="false" help="Animate the selection (reference as `selected-animated`)"/>
</prop>
<prop name="visible_row_count" type="int" help="Show this many rows at once"/>
<prop name="bind_value" type="subject" help="Bind the selected option to a subject"/>
</api>
</widget>