Scheduled maintenance alert

Our website will undergo maintenance from Di, 19.11.2024, 20:00 CEST to Di, 19.11.2024, 22:00 CEST, which may cause occasional service disruptions. We apologize for any inconvenience and appreciate your understanding.

Content

Page tree

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: