-
New Feature
-
Resolution: Done
-
Major
-
None
-
Security Level: Jimmy
-
None
-
None
as code below, messagebox has default button even assign null to buttons attribute, it is make sense to provide a way to create a messagebox with no button easily instead of using template
<zk> <button label="test has button messagebox"> <attribute name="onClick"><![CDATA[ Messagebox.show("Something is changed. Are you sure?", "Question", null, Messagebox.QUESTION, new org.zkoss.zk.ui.event.EventListener(){ public void onEvent(Event e){ if(Messagebox.ON_OK.equals(e.getName())){ //OK is clicked }else if(Messagebox.ON_CANCEL.equals(e.getName())){ //Cancel is clicked } } } ); ]]></attribute> </button> </zk>