feat(xml): add basic callback event support

This commit is contained in:
Gabor Kiss-Vamosi
2025-01-22 17:38:48 +08:00
parent a535063308
commit 1c9c9f6601
10 changed files with 367 additions and 19 deletions
+5 -1
View File
@@ -12,6 +12,10 @@
</styles>
<view extends="lv_obj" width="280" height="240" style_bg_color="#light_blue">
<lv_roller options="'a&0x30;b\nc\nd' infinite" selected="2 true" visible_row_count="3"/>
<lv_button>
<lv_label text="Click me"/>
<lv_event-call_function trigger="clicked" callback="print" user_data="Hello"/>
<lv_event-call_function trigger="clicked" callback="print" user_data="World"/>
</lv_button>
</view>
</component>