Skip to content

Commit

Permalink
add prop params
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Dec 6, 2024
1 parent b5fd9bd commit cfb85a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 0 additions & 3 deletions examples/widgets/dark_slider/dark_slider.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<widget>
<api>
<prop type="string" name="text"/>
</api>
<styles>
<style name="main"
bg_color="0x333333" bg_opa="255"
Expand Down
12 changes: 8 additions & 4 deletions examples/widgets/slider_box/slider_box.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
<widget>
<api>
<prop name="title" type="string"/>
<prop name="title">
<param name="title" type="string"/>
</prop>
</api>
<styles>
<style name="main"
bg_color="0x666666" bg_opa="255"
border_width="2" border_color="0xaaaaaa"
radius="3"
width="250" height="100"/>
width="250" height="100"
layout="flex"
flex_flow="column"/>
</styles>
<view extends="lv_obj"
styles="main"
align="center">

<lv_label align="top_mid" text="$title" width="50%" long_mode="scroll"/>
<lv_obj width="80%" height="content" flex_flow="row">
<lv_label align="top_mid" text="$title" width="80%" long_mode="scroll"/>
<lv_obj width="50%" height="content" flex_flow="row" style_bg_opa="200">
<lv_button width="30" height="30">
<lv_label text="-"/>
</lv_button>
Expand Down

0 comments on commit cfb85a4

Please sign in to comment.