@Varun, the nav is also an HtmlBasedComponent what supports the on_click event ;)
chillworld ( 2014-02-18 10:45:28 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello support,
i am using ZK 7.0.0 on Firefox 27 and i do have an issue with ONCLICK events on a Nav element. Unfortunately the ONCLICK event is never fired.
Greetings
Hi salbader,
Navitem in Nav supports these Events..
Recheck by giving it to navitem
instead of nav
.
Greetings..
M Varun.
@Varun, the nav is also an HtmlBasedComponent what supports the on_click event ;)
chillworld ( 2014-02-18 10:45:28 +0800 )editSalbader.
Your ON_CLICK event is already intercepted. If you want the ON_CLICK event you have to use the ON_OPEN event.
see this fiddle :
http://zkfiddle.org/sample/b9sft4/4-NavItem-Drag-and-Drop-issue#source-2
Greetz chill.
Asked: 2014-02-18 09:29:00 +0800
Seen: 37 times
Last updated: Feb 22 '14
Sample code would help us to solve the issue.. Please post some code.
MVarun ( 2014-02-18 10:10:00 +0800 )editHi Varun,
thank you for the quick response, but i need the ON_CLICK event on the Nav. We are supposed to show a default page when the user clicks on this Nav. The Navitems for this Nav serves as a filter for this default page.
Greetings, Salbader
salbader ( 2014-02-18 10:39:02 +0800 )editSample code is on the way ...
salbader ( 2014-02-18 10:40:59 +0800 )editHi Varun,
Unfortunately all supported events (f.e ONRIGHTCLICK) for HtmlBasedComponent works, except the ON_CLICK event. It looks like it is not being propagated to the server :-( Sample code is ready but i can't post the whole code.
salbader ( 2014-02-18 11:14:59 +0800 )editI create an eventListener at the composer like:
Nav nav = new Nav(); nav.setLabel("test"); nav.addEventListener(Events.ON_CLICK, new EventListener(){
salbader ( 2014-02-18 11:19:00 +0800 )edit@Override public void onEvent(final Event event){ // Do something } }; );