📄 b30-1879487.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--B30-1879487.zul{{IS_NOTE Purpose: Description: History: Mon Jan 28 10:24:23 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:n="http://www.zkoss.org/2005/zk/native"> <n:p>There are two situations in which this events happen</n:p> <n:ol> <n:li> After loading zul, please drop down the list of items and click outside of the combobox (for example in order to close dropped down list without any selection) the onSelect event should not fire and messagebox 'on select: item is null' shouldn't appear. </n:li> <n:li> After loading zul, please focus in combobox, and then click on the 'anyMessage' button. It should not show any messages about the onSelect event. It should show "anyMessage". </n:li> </n:ol> <vbox> <combobox id="cb1" constraint="strict" onSelect="Messagebox.show(self.selectedItem != null ?self.selectedItem.value : " on select: item is null");"> <comboitem label="aaa" value="1" /> <comboitem label="bbb" value="2" /> </combobox> <zscript> </zscript> <button label="anyMessage" onClick="Messagebox.show("anyMessage")" /> </vbox></zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -