четвер, 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)"/>
This is the most recent post.
Старіша публікація

5 коментарі: