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 :

Test BFM Navbar

50NilsR198.41.242.1002bsoj99Jun 15, 2021 2:00:40 PMlink

Test BFM Navbar

49NilsR198.41.242.1002bsoj99Jun 15, 2021 1:59:03 PMlink

Test BFM Navbar

48NilsR198.41.242.1002bsoj99Jun 15, 2021 1:58:25 PMlink

Test BFM Navbar

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

Test BFM Navbar

46NilsR162.158.92.822bsoj99Jun 15, 2021 1:43:04 PMlink

Test BFM Navbar

45NilsR162.158.92.822bsoj99Jun 15, 2021 1:35:36 PMlink

Test BFM Navbar

44NilsR162.158.92.822bsoj99Jun 15, 2021 1:27:37 PMlink

Test BFM Navbar

43NilsR162.158.92.832bsoj99Jun 15, 2021 1:20:35 PMlink

Test BFM Navbar

42NilsR162.158.92.832bsoj99Jun 15, 2021 1:07:51 PMlink

Test BFM Navbar

41NilsR162.158.92.822bsoj99Jun 15, 2021 12:49:37 PMlink

Test BFM Navbar

29NilsR162.158.88.2382bsoj99Jun 11, 2021 9:26:33 AMlink

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> <div apply="pkg$.TestComposer"> <borderlayout height="1080px"> <center border="0"> <borderlayout> <west maxsize="600" size="10%" border="0"> <div style="background:#f8f8f8" vflex="1"> <button iconSclass="z-icon-reorder" label="" style="font-size: 14px; background: none !important; color: black; border: none !important; font-weight: bold; box-shadow: none; width=30%"> <attribute name="onClick"><![CDATA[ navBar.setCollapsed(event.isClicked()); ]]></attribute> </button> <div class="circle" style="margin: 10px !important; display:block;"> <div style="padding-left: 14px; padding-top: 18px">NR</div> </div> <navbar orient="vertical" width="150px" 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> </div> </west> <center border="0"> <borderlayout> <west title="Verzeichnisbaum" size="15%" collapsible="true" splittable="true"> <div style="margin: 10px"> <label value="Ordner 1"/> </div> </west> <north size="10%"> <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: 8px; padding-top: 18px">public</div> </div> <div class="circle"> <div style="padding-left: 14px; padding-top: 18px">NR</div> </div> <div class="circle"> <div style="padding-left: 14px; padding-top: 18px">WK</div> </div> <div class="circle"> <div style="padding-left: 14px; padding-top: 18px">+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> <listbox id="listbox" width="100%" nonselectableTags="" 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> <listbox mold="select" hflex="1"> <listitem label="Excel" /> <listitem label="PowerPoint" /> <listitem label="Word" selected="true"/> <listitem label="Textdatei" /> </listbox> </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%"> <div style="margin: 10px"> <label value="Ordner 1" style="font-weight: bold; font-size:14"/><separator/> <textbox style="margin-top: 20px; margin-bottom: 20px;" rows="1" hflex="1" value="https://test.system/rest/share/34gh5j423a213"></textbox> <div class="container"><label value="Attribute"></label></div> <div style="margin-top: 10px;"><label style="" value="Virenprüfung"/><checkbox mold="default" checked="true"/><label value="19.05.2019"/><separator/> <label style="" value="Öffentlich"/><checkbox style="margin-left: 5px;" mold="switch" checked="false"/></div> <div class="container"><label value="Persönliche Einstellungen"></label></div> <div style="margin-top: 10px;"><label value="Berechtigen"/> <checkbox mold="switch" checked="true"/></div><separator/> <label width="80px" value="Beobachten"/> <checkbox mold="switch" checked="false"/><separator/> <label style="margin-right: 15px;" value="Favoriten"/> <checkbox mold="switch" checked="false"/><separator/> <div class="container"><label value="Aktionen"></label></div> <button label="Herunterladen" style="width:100%; margin-bottom: 0px;"/> <separator/> <button label="Öffnen" style="width:100%; margin-bottom: 0px;"/><separator/> <button label="Link senden" style="width:100%; margin-bottom: 0px;"/><separator/> <button label="Kopieren" style="width:100%; margin-bottom: 0px;"/><separator/> <button label="Verschieben" style="width:100%; margin-bottom: 0px;"/><separator/> <button label="Umbennen" style="width:100%; margin-bottom: 0px;"/><separator/> <button label="Protokoll anzeigen" style="width:100%; margin-bottom: 0px;"/><separator/> <button label="Versionen anzeigen" style="width:100%; margin-bottom: 0px;"/> </div> </east> </borderlayout> </center> </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.csscss.horizontal, .vertical { min-height: 300px; background-color: #EAE7E7; } .z-navitem-content, .z-nav-content { color: black; } .z-nav .z-navitem-content { padding: 6px 18px; } .z-navbar>ul ul .z-navitem:last-child span{ text-decoration: underline; } button { margin: 8px; padding: 5px !important; } .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; } .z-navbar ul { background: none; } .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 20px 10px; cursor: pointer; letter-spacing: 0.5px; height: 18px; border-bottom: 3px solid rgba(15, 139, 240, 0.4); } .container span { font-size: 14px; } .z-select { margin: 8px; }