Content
Usage note:
- The list size is based on when the callback is called. On example code 1, rather than return number 5, which is the amount of MenuItems, the callback returns '3' as result.
Example 1: Get list size of simple MenuItem
<SnomIPPhoneMenu> <MenuItem name="line1"></MenuItem> <MenuItem name="line2"></MenuItem> <MenuItem name="line3"></MenuItem> <MenuItem name="list_size:$(list_size)"></MenuItem><!-- list_size:3--> <MenuItem name="line5"></MenuItem> </SnomIPPhoneMenu>
Result:
Example 2: Get list size of simple Text
<SnomIPPhoneText> <Text> line1<br /> line2<br /> lorem ipusfjsaöljkfsaölj lkfölsdajföl jfö jfkj aöfjs jfödajföj aölj öojsfdjsdkfjöldfj<br /> list_size:$(list_size) </Text> </SnomIPPhoneText>
Result:
Further Information
Related articles