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>
4 коментарі:
Awesome information in the post
Govt Jobs
Latest Govt Bank Jobs Recruitment Notification 2015-16
Clear explanation........ Great job author, Thanks for sharing this information. Keep sharing your views..............
Telangana DSC Recruitment Notification 2016
Thank you, This is a very clear, informative and helpful post....
HSSC Recruitment 2016
Thanks for sharing. I hope it will be helpful for too many people that are searching for this topic.....
Дописати коментар