Processing...

Suggested case list:

Using timer to refresh a grid

383guest172.69.33.12125nk0uiMay 7, 2020 7:23:47 AMlink

user model to move item to another listbox

120guest162.158.193.148d0n3krApr 2, 2020 5:28:28 AMlink

Disabled list item row passed to VM-1981

296fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:44 PMlink

Disabled list item row passed to VM-1981

295fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:16 PMlink

Disabled list item row passed to VM-1981

294fatih123160.83.36.13225nk0uiFeb 13, 2018 3:30:44 PMlink

grid sample with ListModel/RowRenderer

816guest80.82.2.1312vah9ajFeb 21, 2017 11:42:21 AMlink

grid sample with ListModel/RowRenderer

809guest175.98.113.1622vah9ajJan 26, 2017 9:19:33 AMlink

grid sample with ListModel/RowRenderer

196guest79.185.142.402vah9ajApr 26, 2014 10:53:57 PMlink

grid sample with ListModel/RowRenderer

195guest79.185.142.402vah9ajApr 26, 2014 10:53:54 PMlink

grid sample with ListModel/RowRenderer

194guest79.185.142.402vah9ajApr 26, 2014 10:53:51 PMlink

grid sample with ListModel/RowRenderer

193guest79.185.142.402vah9ajApr 26, 2014 10:53:48 PMlink

grid sample with ListModel/RowRenderer

192guest79.185.142.402vah9ajApr 26, 2014 10:53:44 PMlink

grid sample with ListModel/RowRenderer

191guest79.185.142.402vah9ajApr 26, 2014 10:53:40 PMlink

Hierarchy table without using ZK PE/EE

1aaknai151.28.135.2131s871daJul 29, 2013 11:02:46 PMlink

grid sample with ListModel/RowRenderer

128aaknai151.28.135.2132vah9ajJul 29, 2013 7:20:00 PMlink

user model to move item to another listbox

1TonyQ114.25.109.94d0n3krApr 21, 2012 10:43:27 AMlink

Using timer to refresh a grid

1TonyQ220.133.44.3725nk0uiFeb 17, 2012 3:17:34 AMlink

Fire a event from child iframe

1TonyQ220.133.44.372eupjotFeb 3, 2012 5:04:52 AMlink

Textbox input restriction sample

1TonyQ72.21.245.2431b3nlr0Dec 20, 2011 10:09:10 AMlink

Test web core taglib in ZUL

1TonyQ198.203.175.175ofqkemDec 17, 2011 3:36:08 AMlink

Latest 10 Fiddles :

L & F

99guest172.70.114.862o1s8fiAug 2, 2021 7:06:20 PMlink

L & F

98guest172.70.114.872o1s8fiAug 2, 2021 7:05:30 PMlink

ZK scrollintoview client override

2guest162.158.183.161u46s7dAug 2, 2021 12:22:29 PMlink

compare popup from client or server

19guest162.158.191.164323lscbAug 2, 2021 11:19:10 AMlink

Multiple Selection by Button

14MDuchemin108.162.215.76357ceuAug 2, 2021 9:38:39 AMlink

Multiple Selection by Button

13MDuchemin172.70.98.48357ceuAug 2, 2021 9:37:16 AMlink

Another new ZK fiddle

2guest172.68.79.156etoblrAug 2, 2021 9:30:30 AMlink

Another new ZK fiddle

1guest172.68.79.184etoblrAug 2, 2021 9:25:51 AMlink

conditional save binding to prevent command

1cor3000172.69.35.121ujl6buAug 2, 2021 9:12:50 AMlink

Another new ZK fiddle

1guest172.68.79.1451ansubrAug 2, 2021 8:47:48 AMlink

Test BFM Navbar

47NilsR162.158.92.822bsoj99Jun 15, 2021 1:43:13 PMlink

resources

index.zulzul<zk> <style src="style.css"/> <checkbox label="Collapsed" checked="false"> <attribute name="onCheck"><![CDATA[ navBar.setCollapsed(event.isChecked()); ]]></attribute> </checkbox> <zscript><![CDATA[ List files = new ArrayList(); for (int i = 1; i <= 5; i++) { files.add("Datei " + i); } ]]></zscript> <script src="externalfile.js"></script> <div apply="pkg$.TestComposer"> <navbar orient="vertical" height="1080px" style="display:inline-block; vertical-align: top; position: relative" id="navBar"> <navitem label="Dashboard" iconSclass="z-icon-home" /> <navitem label="Favoriten" iconSclass="z-icon-heart" /> <nav label="Datenräume" iconSclass="z-icon-cloud"> <navitem label="Meine Dateien" iconSclass="z-icon-user"/> <navitem label="Projekt xyz" iconSclass="z-icon-random"/> <navitem label="Vertrieb" iconSclass="z-icon-shopping-cart"/> <navitem label="Mehr anzeigen" style="text-decoration: underline;"/> </nav> <navitem label="Postbox" iconSclass="z-icon-envelope" /> <navitem label="Kontakte" iconSclass="z-icon-group"/> <navitem label="Administration" iconSclass="z-icon-cogs"/> <navitem label="Info" iconSclass="z-icon-info-circle"/> </navbar> <borderlayout height="1080px" width="90%" style="display:inline-block;"> <west title="Verzeichnisbaum" size="15%" collapsible="true" splittable="true"> <div style="margin: 10px"> <label value="> Ordner 1"/><separator/> <label value=" > Ordner 1.1"/><separator/> <label value="> xyza" style="font-weight: bold"/><separator/> <label value="> Ordner 3"/> </div> </west> <center border="0"> <borderlayout> <north height="15%" border="0"> <div> <div style="margin-bottom: 5px; width: 65%; display: inline-block"> <button label="xyza" iconSclass="z-icon-folder" style="background: none !important; color: black; border: none !important; font-size: 16px; font-weight: bold; box-shadow: none;margin-bottom: 0px;"/> <separator/> <button style="padding: 8px 16px !important;" label="Datei hochladen"/> <listbox mold="select"> <listitem label="Anlegen" selected="true"/> <listitem label="Ordner anlegen" /> <listitem label="Excel anlegen" /> <listitem label="Word anlegen" /> <listitem label="PowerPoint anlegen" /> </listbox> <listbox mold="select" style="text-align-last: center;"> <listitem label="..." selected="true"/> <listitem label="Herunterladen" /> <listitem label="Öffnen" /> </listbox> </div> <div style="width: 25%; display: inline-block; vertical-align: super;"> <div class="circle"> <div style="padding-left: 4px; padding-top: 14px">public</div> </div> <div class="circle"> <div style="padding-left: 14px; padding-top: 14px">NR</div> </div> <div class="circle"> <div style="padding-left: 14px; padding-top: 14px">WK</div> </div> <div class="circle"> <div style="padding-left: 14px; padding-top: 14px">+3</div> </div> </div> <div style="width: 8%; display: inline-block; vertical-align: super;"> <listbox mold="select" style="text-align-last: center; width: 120px;"> <listitem label="Ansicht" selected="true"/> <listitem label="Listenansicht" /> <listitem label="Kachelansicht" /> </listbox> </div> </div> </north> <center border="none"> <listbox id="listbox" width="100%" nonselectableTags="" style="border:1px solid transparent" checkmark="true" multiple="true"> <listhead> <listheader label="Name" width="50%"/> <listheader label="Typ" width="10%"/> <listheader label="Größe" width="10%%"/> <listheader label="Letzte Änderung" width="15%"/> <listheader label="Ersteller" width="15%"/> </listhead> <zk forEach="${files}"> <listitem> <listcell label="${each}"></listcell> <listcell> <label value="Datei"/> </listcell> <listcell> <label value="10MB"/> </listcell> <listcell> <label value="26.10.2019 10:13"/> </listcell> <listcell> <label value="Pan, Peter"/> </listcell> </listitem> </zk> </listbox> </center> <east size="20%" collapsible="true" splittable="true"> <div> <label value="Datei 1" style="font-weight: bold; font-size:20px; margin: 20px;"/><separator/> <textbox width="80%" style="margin-top: 20px; margin-bottom: 20px; margin-left: 20px;" rows="1" value="https://test.system/rest/share/34gh5j423a213"></textbox> <div class="container"><label value="Attribute"></label></div> <div style="margin-top: 10px;"><label style="margin-right: 15px;margin-left: 20px;" value="Virenprüfung"/><checkbox mold="default" checked="true" style="margin-right: 20px;" disabled="true"/><label value="19.05.2019"/><separator/> <label style="margin-right: 25px;margin-left: 20px;" value="Öffentlich"/><checkbox style="margin-left: 5px;" mold="switch" checked="false" /></div><separator/><separator/><separator/> <div class="container"><label value="Persönliche Einstellungen"></label></div> <div style="margin-top: 10px; margin-left: 20px;"><label value="Erinnerung" style="margin-right: 5px;"/> <checkbox mold="switch" checked="true" style="margin-right: 20px;"/><label value="23.05.2019"/></div><separator/> <label width="80px" style="margin-left: 20px;" value="Beobachten"/> <checkbox mold="switch" checked="false"/><separator/> <label style="margin-right: 20px;margin-left: 20px;" value="Favoriten"/> <checkbox mold="switch" checked="false"/><separator/><separator/><separator/> <div class="container"><label value="Aktionen"></label></div> <button class="actionButton" label="Herunterladen"/> <button class="actionButton" label="Öffnen"/> <button class="actionButton" label="Link senden"/> <button class="actionButton" label="Kopieren"/> <button class="actionButton" label="Verschieben"/> <button class="actionButton" label="Umbennen"/> <button class="actionButton" label="Protokoll anzeigen"/> <button class="actionButton" label="Versionen anzeigen"/> </div> </east> </borderlayout> </center> </borderlayout> </div> </zk> TestComposer.javajava import java.util.List; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.DropEvent; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.select.SelectorComposer; import org.zkoss.zk.ui.select.annotation.Listen; import org.zkoss.zk.ui.select.annotation.Wire; import org.zkoss.zkmax.zul.Navbar; import org.zkoss.zkmax.zul.Navitem; public class TestComposer extends SelectorComposer<Component>{ @Wire Navbar navBar; public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); } @Listen("onDrop = navitem") public void onNavItemDrop(DropEvent event) { final Navitem dragged = (Navitem) event.getDragged(); final Navitem dropped = (Navitem) event.getTarget(); final List<Component> list = navBar.getChildren(); for (final Component component : list){ if(component instanceof Navitem){ final Navitem currentNavitem = (Navitem) component; if(currentNavitem.equals(dropped)){ navBar.insertBefore(dragged, dropped); return; } else if(currentNavitem.equals(dragged)){ navBar.insertBefore(dropped, dragged); return; } } } } } style.csscssbody *:not([class*="z-icon-"]) { font-family:Arial Nova light, Arial light,Helvetica,sans-serif;; } .z-navitem-content, .z-nav-content { color: white; font-size: 18px; } .z-nav .z-navitem-content { padding: 6px 18px; } .z-navbar>ul ul .z-navitem:last-child span{ text-decoration: underline; } .z-listheader { background: #f8f8f8; border-bottom: #f8f8f8; border-left: #f8f8f8; } .z-listheader-content { color: black; border-bottom: 3px solid rgba(15, 139, 240, 0.4); } button { margin: 8px; padding: 4px !important; background-color: #00A5E1 !important; } .z-button:hover { color: black; } input[type="checkbox"][disabled] { font-family: ZK85Icons, FontAwesome; } .actionButton { background: none !important; color: black; width:100%; margin-bottom: 0px; border: none; box-shadow: none; } .circle { width: 50px; height: 50px; border-radius: 25px; background: none; border: 1px solid black; margin: 4px; display: inline-block; } .z-navbar { position: absolute; border: none !important; background: #2C4766; } .z-navbar ul { background: #2C4766; } .z-navbar-horizontal li { min-width: 145px; }   .z-navbar-vertical { width: 160px; height: 300px; }   .z-navbar-vertical.z-navbar-collapsed { width: inherit; }   .z-navbar-horizontal.z-navbar-collapsed { width: 580px; } .content { padding: 18px 22px; } .vertical .content { padding-left: 182px; } .vertical .content.collapsed { padding-left: 75px; } .horizontal .content { padding-top: 50px; } .content .title { margin: 0; } .content .subTitle { margin: 0; } .container { color: #777; padding: 10px 8px 30px 20px; cursor: pointer; letter-spacing: 0.5px; height: 18px; border-bottom: 3px solid rgba(15, 139, 240, 0.4); } .container span { font-size: 16px !important; } .z-select { margin: 8px; } .z-center-body { padding-top: 0px; } .z-east-body { padding-left: 0px; padding-right: 0px } .z-east-body .z-label{ font-size: 14px; } externalfile.jsjavascriptfunction hello() { alert('hello'); } function setMenuOpen(){ navBar.setCollapsed(event.isClicked()); }