Customizing Bootstrap Theme Demonstration

From Documentation
Revision as of 14:45, 13 November 2013 by Raymondchao (talk | contribs)

<zk xmlns:n="native">

 <a label="RECENT" iconSclass="z-icon-rss orange" sclass="rcaption lighter"/>
 <tabbox sclass="rtab">
   <tabs>
     <tab label="Comments"/>
     <tab label="Members"/>
     <tab label="Tasks" selected="true"/>
   </tabs>
   <tabpanels>
     <tabpanel>
       <vlayout>
         <grid height="300px" sclass="comments">
           <columns>
             <column width="50px" height="50px"/>
             <column height="50px"/>
           </columns>
           <rows>
             <row>
                 <image tooltiptext="Bob's Avatar" src="assets/avatars/avatar.png"/>
                 <a label="Bob Doe" href="#" sclass="name"/>
                 <a label="6 min" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                   
                   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque commodo massa sed ipsum porttitor facilisis …
                   <a iconSclass="z-icon-pencil blue bigger-125" href="#"/>
                   <a iconSclass="z-icon-trash red bigger-125" href="#"/>
             </row>
             <row>
                 <image tooltiptext="Jennifer's Avatar" src="assets/avatars/avatar1.png"/>
                 <a label="Jennifer" href="#" sclass="name"/>
                 <a label="15 min" iconSclass="z-icon-time" sclass="time blue" disabled="true"/>
                   
                   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque commodo massa sed ipsum porttitor facilisis …
                   <a iconSclass="z-icon-pencil blue bigger-125" href="#"/>
                   <a iconSclass="z-icon-trash red bigger-125" href="#"/>
             </row>
             <row>
                 <image tooltiptext="Joe's Avatar" src="assets/avatars/avatar2.png"/>
                 <a label="22 min" iconSclass="z-icon-time" sclass="time orange" disabled="true"/>
                 <a label="Bob " href="#" sclass="name"/>
                   
                   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque commodo massa sed ipsum porttitor facilisis …
                   <a iconSclass="z-icon-pencil blue bigger-125" href="#"/>
                   <a iconSclass="z-icon-trash red bigger-125" href="#"/>
             </row>
             <row>
                 <image tooltiptext="Rita's Avatar" src="assets/avatars/avatar3.png"/>
                 <a label="Rita" href="#" sclass="name"/>
                 <a label="55 min" iconSclass="z-icon-time" sclass="time red" disabled="true"/>
                   
                   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque commodo massa sed ipsum porttitor facilisis …
                   <a iconSclass="z-icon-pencil blue bigger-125" href="#"/>
                   <a iconSclass="z-icon-trash red bigger-125" href="#"/>
             </row>
           </rows>
         </grid>
           
           <a href="#" label=" See all comments " sclass="link">
             
           </a>
       </vlayout>
     </tabpanel>
     <tabpanel>
       <vlayout>
         <hlayout style="white-space: normal;" spacing="0" >
               <image tooltiptext="Bob Doe's avatar" src="assets/avatars/user.jpg" />
               <a label="Bob Doe" href="#" sclass="name"/>
               <a label="20 min" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 pending
                   <button sclass="btn btn-minier bigger btn-yellow btn-no-border" iconSclass="z-icon-angle-down icon-only bigger-120" 
                   popup="statustt, position=after_end"/>
               <image tooltiptext="Joe Doe's avatar" src="assets/avatars/avatar2.png" />
               <a label="Joe Doe" href="#" sclass="name"/>
               <a label="1 hour" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 pending
                   <button sclass="btn btn-minier bigger btn-yellow btn-no-border" iconSclass="z-icon-angle-down icon-only bigger-120" 
                   popup="statustt, position=after_end"/>
               <image tooltiptext="Jim Doe's avatar" src="assets/avatars/avatar.png" />
               <a label="Jim Doe" href="#" sclass="name"/>
               <a label="2 hour" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 pending
                   <button sclass="btn btn-minier bigger btn-yellow btn-no-border" iconSclass="z-icon-angle-down icon-only bigger-120" 
                   popup="statustt, position=after_end"/>
               <image tooltiptext="Alex Doe's avatar" src="assets/avatars/avatar5.png" />
               <a label="Alex Doe" href="#" sclass="name"/>
               <a label="3 hour" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 blocked
               <image tooltiptext="Bob Doe's avatar" src="assets/avatars/avatar2.png" />
               <a label="Bob Doe" href="#" sclass="name"/>
               <a label="6 hour" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 approved
               <image tooltiptext="Susan's avatar" src="assets/avatars/avatar3.png" />
               <a label="Susan" href="#" sclass="name"/>
               <a label="yesterday" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 approved
               <image tooltiptext="Phil Doe's avatar" src="assets/avatars/avatar4.png" />
               <a label="Phil Doe" href="#" sclass="name"/>
               <a label="2 days ago" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 online
               <image tooltiptext="Alexa Doe's avatar" src="assets/avatars/avatar1.png" />
               <a label="Alexa Doe" href="#" sclass="name"/>
               <a label="3 days ago" iconSclass="z-icon-time" sclass="time green" disabled="true"/>
                 approved
         </hlayout>
         
         <a href="#" label=" See all members " sclass="link">
           
         </a>
       <popup id="statustt" sclass="cog" style="margin-left:8px">
         <a iconSclass="z-icon-ok green bigger-110" tooltip="aprpp, position=end_center, delay=0"/>
         <a iconSclass="z-icon-remove orange bigger-110" tooltip="rejpp, position=end_center, delay=0"/>
         <a iconSclass="z-icon-trash red bigger-110" tooltip="trapp, position=end_center, delay=0"/>
       </popup>
       <popup id="aprpp" zclass="tooltip" sclass="right tooltip-success">
         
         <label zclass="tooltip-inner" value="Approve"/>
       </popup>
       <popup id="rejpp" zclass="tooltip" sclass="right tooltip-warning">
         
         <label zclass="tooltip-inner" value="Reject"/>
       </popup>
       <popup id="trapp" zclass="tooltip" sclass="right tooltip-error">
         
         <label zclass="tooltip-inner" value="Delete"/>
       </popup>
       </vlayout>
     </tabpanel>
     <tabpanel>
       <a label="Sortable Lists" iconSclass="z-icon-list" disabled="true" sclass="green lighter rcaption"/>
       <listbox id="lb" sclass="task" checkmark="true" multiple="true">
         <listhead>
             <listheader/>
             <listheader width="100px"/>
         </listhead>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-orange">
           <listcell label="Answering customer questions" sclass="text"/>
           <listcell>
             <n:div class="pull-right easy-pie-chart percentage" data-size="30" data-color="#ECCB71" data-percent="42" 
             style="width:30px;height:30px;line-height:30px;">
               <n:span class="percent">42</n:span>%
             </n:div>
           </listcell>
         </listitem>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-red">
           <listcell label="Fixing bugs" sclass="text"/>
           <listcell>
               <a iconSclass="z-icon-pencil blue" href="#"/>
               <a iconSclass="z-icon-trash red" href="#"/>
               <a iconSclass="z-icon-flag green" href="#"/>
           </listcell>
         </listitem>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-default">
           <listcell label="Adding new features" sclass="text"/>
           <listcell/>
         </listitem>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-blue">
           <listcell label="Upgrading scripts used in template" sclass="text"/>
           <listcell>
             <button sclass="btn btn-minier bigger btn-primary pull-right" iconSclass="z-icon-cog"
               popup="cogtt, position=after_end"/>
           </listcell>
         </listitem>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-grey">
           <listcell label="Add new skins" sclass="text"/>
           <listcell/>
         </listitem>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-green">
           <listcell label="Updating server software up" sclass="text"/>
           <listcell/>
         </listitem>
         <listitem draggable="true" droppable="true" onDrop="doDrop(event,self);" sclass="task-pink">
           <listcell label="Cleaning up" sclass="text"/>
           <listcell/>
         </listitem>
       </listbox>
       <popup id="cogtt" sclass="cog">
         <a iconSclass="z-icon-ok green bigger-110" tooltip="markpp, position=start_center, delay=0"/>
         <a iconSclass="z-icon-trash red bigger-110" tooltip="delepp, position=start_center, delay=0"/>
       </popup>
       <popup id="markpp" zclass="tooltip" sclass="tooltip-success left">
         
         <label zclass="tooltip-inner" value="Mark as done"/>
       </popup>
       <popup id="delepp" zclass="tooltip" sclass="tooltip-error left">
         
         <label zclass="tooltip-inner" value="Delete"/>
       </popup>
       <zscript><![CDATA[
         import java.util.*;
         import org.zkoss.zul.*;
         
         List children = lb.getChildren();
         void doDrop(DropEvent event, Component droped) {
           Component dragged = event.getDragged();
           int from = children.indexOf(dragged);
           int to = children.indexOf(droped);
           droped.getParent().insertBefore(dragged, droped);
         }
       ]]></zscript>
     </tabpanel>
   </tabpanels>
 </tabbox>

</zk>