mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-27 20:57:01 +08:00
feat(style): add lv_obj_bind_style_prop (#9173)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Liam Howatt <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
483cb38f60
commit
ebc48b5c56
@@ -60,6 +60,12 @@ Example
|
||||
<arg name="ref_value" type="int" help="Value that activates the style"/>
|
||||
</element>
|
||||
|
||||
<element name="bind_style_prop" access="custom" type="void" help="Bind a style to a subject value">
|
||||
<arg name="prop" type="style_prop" help="Name of a style property"/>
|
||||
<arg name="selector" type="selector+" default="0" help="Selector (part and/or state)"/>
|
||||
<arg name="subject" type="subject" help="Subject to bind"/>
|
||||
</element>
|
||||
|
||||
<element name="event_cb" access="add" type="void" help="Attach an event callback">
|
||||
<arg name="callback" type="event_cb" help="Callback function"/>
|
||||
<arg name="trigger" type="lv_event" default="clicked" help="Event to trigger callback"/>
|
||||
|
||||
Reference in New Issue
Block a user