-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Is it possible to get labels when using a horizontal navbar with collapsed=true? Seems like I can only use icons ...
Hi Tisaksen,
In collapsed mode, the navbar will render the labels with display:none Also, the labels will appear as the first item of the popup menu when mouse is over the item.
It's possible to change the display style of the label node, but it will "jump" to inside the popup when the popup opens. http://zkfiddle.org/sample/cmu1h9/1-navbar-collapsed-label not very optimal
better solution is to override the domContent for zkmax.nav.Nav.prototype.domContent_ and zkmax.nav.Navitem.prototype.domContent_. In that case, you basically decide what to render as part of the node. you can either test if the node is the first-level child of the navbar (and add a label to display), or just add a label all the time and use CSS to target 1st-level nav and navbar anyway Have a look here for a fiddle example: http://zkfiddle.org/sample/cmu1h9/2-navbar-collapsed-label
Asked: 2019-03-01 21:18:48 +0800
Seen: 9 times
Last updated: Mar 05 '19
How to control selectAll() feature in a Listbox with multiple=true and checkmark=true
ZK8 Wizard Series: Part 2 now released!
Faster And Lighter, The Performance Test On ZK8
org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
How To Check Dirty Status in ZK8?
Come and join the ''JS'' Hunt!