Loading...
четвер, 17 вересня 2015 р.

ZKoss: tooltip for each item in the itemlist

vm.itemList is a list of strings and we need to show tooltip for each item in list.
The first line defines listbox and sets paging mold (listbox will look not like combobox but like some paginated table).
Then we set a model (list of strings in our case) to listbox and specify the field to return the selected item from that list.
The third line defines template based on model. Inside template we bind labels, values, tooltips



<listbox mold="paging"
      model="@bind(vm.itemsList)" selectedItem="@bind(vm.selectedValue)"
      <template name="model" var="item">
          <listitem value="@bind(item)" label="@bind(item)" tooltiptext="@bind(item)"/>
      </template>
</listbox>
Next
This is the most recent post.
Старіша публікація

4 коментарі:

Unknown сказав...

Awesome information in the post

Govt Jobs

Unknown сказав...

Latest Govt Bank Jobs Recruitment Notification 2015-16

Clear explanation........ Great job author, Thanks for sharing this information. Keep sharing your views..............

Unknown сказав...

Telangana DSC Recruitment Notification 2016

Thank you, This is a very clear, informative and helpful post....

Unknown сказав...


HSSC Recruitment 2016

Thanks for sharing. I hope it will be helpful for too many people that are searching for this topic.....

 
TOP