-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I got a problem need answers. How can I prevent the default ZK event?
<panel height="150px" title="Google Tools" border="normal" maximizable="true" style="margin-bottom:10px"
onMaximize='alert("testAlert");'>
<panelchildren>
<iframe width="100%" height="100%" src="http://www.google.com"/>
</panelchildren>
</panel>
in the codes upon, you see I defined a custom event(onMaximize='alert("testAlert");'), but when my custom event occurs, zk default event occurs also(here maximize event), is there any way to stop the zk default event(here I want just alert no maximize, is it posible)?
or, maybe I can add another icon here like the maximize icon to do my custom event. then is there any way to add a icon(button, link or something else) like the zk default icon with my custom event? or can I change the icons those zk default made with my own evnt?
So I think it is no possible to change the default events those already bind in the zk components.
If I want a component with my own event I should write my own one, even though there is only little changes on zk default one, right?
Is there anyone can answer my this question?
is there any way to change the default zk event(change not add anther event)?
is there any way to add my custom event to a existed zk component, as to add my own custom onMaximize event in my own icon besides the default maximize icon?
are these possible? if there are some idea just help me please!!
Asked: 2009-09-29 02:51:55 +0800
Seen: 541 times
Last updated: Oct 13 '09