zkoss listbox获取选中列表


zkoss listbox获取选中列表

<!-- zul -->
<listbox  id="result"  sizedByContent="false" emptyMessage="没有数据" model="@load(vm.result.result)" class="Search_list1">
    <listhead sizable="true" columnsgroup="true" columnshide="true" class="thead">
      <listheader label="#" align="center" />
    <listheader label="订单编号" align="center" width="150px"/>
    <listheader label="团编号" align="center" width="150px"/>
    </listhead>

    <template name="model" var="order">
    <listitem context="menuPopup" onDoubleClick="@command('onEdit',tourOrder=order)" class="Search_list1">
       <listcell label="@load(order.id)"/>
          <listcell label="@load(order.billingInvoice)"/>
          <listcell label="@load(order.tour.code)"/>
    </listitem>
    </template>
</listbox>

<menupopup id="menuPopup" mold="bs">
    <menuitem id="edit" label="编辑" image="/img/Centigrade-Widget-Icons/Bubble-16x16.png" onClick="@command('onEdit',tourOrder=result.selectedItem.value)"/>
    <menuitem id="delete" label="删除" image="/img/Centigrade-Widget-Icons/DeleteCross-16x16.png" onClick="@command('onDelete',tourOrder=result.selectedItem.value)"/>
</menupopup>

同类文章