0

关于zk控件扩展

asked 2009-10-03 15:53:36 +0800

cryandaguo gravatar image cryandaguo
72 2

一个简单的例子代码
<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>

这里有2个问题想问下
1 我定义了我自己的 onMaximize 事件,当onMaximize事件发生以后我自己定义的和zk default的都会发生,有没有可能让zk已存在的事件不发生?
就是说我能否改变zk的默认事件?或者说,我能否在zk已经存在的控件上的事件进行自定义?
2 有没有可能在这个maximize按钮边加上我自己的图标并定义事件? 就是说 我能否对zk已经存在的控件进行改造

delete flag offensive retag edit

1 Reply

Sort by » oldest newest

answered 2009-11-04 09:57:51 +0800

cmd gravatar image cmd
69 1

是不是需要在后台继承panel并覆盖掉父亲的这个onMaximize方法,不知道可行吗?我没有试验过

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-10-03 15:53:36 +0800

Seen: 765 times

Last updated: Nov 04 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More