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 Code Block |
---|
| <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: Image Added
Example 2: Get list size of simple Text
Code Block |
---|
| <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: Image Added
Include Page |
---|
| Howto Footer - uni-en |
---|
| Howto Footer - uni-en |
---|
|
Content by Label |
---|
showLabels | false |
---|
max | 50 |
---|
spaces | PW |
---|
showSpace | false |
---|
sort | title |
---|
type | page |
---|
cql | label = "callbacks" and type = "page" |
---|
labels | minibrowser xml-minibrowser |
---|
|
|