-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I need to pass parameters to context menu. This is my code:
<label forEach="${stamp.stamps}" width="55px"
value="${stamp.stamps[forEachStatus.index]}"
tooltiptext="Ore: ${stamp.stamps[forEachStatus.index]} Anomaly: ${stamp.stamps[forEachStatus.index].anomaly}"
style="${stamp.stamps[forEachStatus.index].anomaly eq 'true' ? 'color:red;text-align:right' : 'color:#373842;text-align:right' }"
context="contextMenu" />
and this is my contextMenu:
<menupopup id="contextMenu">
<menuitem label="Dettagli giornata" />
<menuitem label="Inserisci giustificativo" />
</menupopup>
Thanks.
Hi,
you cannot pass parameters to the context menu directly. The context menu will receive an OpenEvent containing the a reference to the opening component.
Check out this example on zkfiddle which shows a simple usecase of a dynamic context menu reacting on its referencing component.
Robert
Asked: 2013-11-26 17:12:18 +0800
Seen: 19 times
Last updated: Nov 27 '13