Advertisement
Samsul8908

Zul file

Apr 3rd, 2019
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.64 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zk xmlns="http://www.zkoss.org/2005/zul" xmlns:w="client">
  3. <?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>      
  4. <window width="100%" height="100%" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.eksad.ddms.gigr.h3.web.viewmodel.checkarea.CheckAvailabilityOnAreaVM')" >      
  5.     <grid >
  6.         <columns>
  7.         <column label="" width="100%" height="300px"/>     
  8.         </columns>
  9.         <rows>
  10.                     <row>
  11.                         <div width="100%">                  
  12.                             <script type="text/javascript" content="zk.googleAPIkey='MY_API_KEY_ASK_ME_IF_YOU_NEED'" />
  13.                             <gmaps version="3." id="gmaps"   width="100%" showZoomCtrl="true"  lat="@bind(vm.lat)" lng="@bind(vm.lng)" height="500px"  protocol="https" >
  14.                                 <!--The marker should be populate in here-->
  15.                             </gmaps>
  16.                         </div>      
  17.             </row>
  18.                     <row width="100%">
  19.                      <listbox  width="100%" model="@load(vm.areaList)" emptyMessage="no data found"  >
  20.                             <listhead>
  21.                                     <listheader label="Part Number"/>
  22.                                     <listheader label="Name"/>
  23.                                     <listheader label="Address"/>
  24.                                     <listheader label="Kode"/>
  25.                                     <listheader label="Distance"/>
  26.                                     <listheader label="Acction"/>
  27.                             </listhead>
  28.                             <template name="model" var="item">
  29.                             <listitem>
  30.                                     <listcell label=""/>
  31.                                     <listcell label="@bind(item.name)"/>
  32.                                     <listcell label="@bind(item.address)"/>
  33.                                     <listcell label="@bind(item.code)"/>
  34.                                     <listcell label="@bind(item.distance)"/>
  35.                                     <listcell >
  36.                                         <button>Create PO</button>
  37.                                     </listcell>
  38.                             </listitem>
  39.                             </template>    
  40.                     </listbox>
  41.                     </row>
  42.         </rows>
  43.     </grid>
  44.        
  45.         <borderlayout>
  46.                 <center border="none" >                    
  47.                 </center>
  48.                 <east size="50%" border="none" flex="true">                
  49.                 </east>
  50.     </borderlayout>    
  51. </window>
  52. </zk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement