0

How can we change alert title ("zk") ?

asked 2009-03-25 08:14:31 +0800

kkurt gravatar image kkurt
300 1 2

Hi,
How can we change alert title, "zk" ?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-03-25 09:35:30 +0800

hideokidd gravatar image hideokidd
750 1 2

Hi,

I think alert couldn't be customized, how about trying messagebox,
http://docs.zkoss.org/wiki/Message_Box

Thanks.

link publish delete flag offensive edit

answered 2009-03-25 09:39:30 +0800

kindalu gravatar image kindalu
255

You could use Messagebox instead.
example:

<button label="alert no zk title">
  <attribute name="onClick">
    //alert("wuwu");
    Messagebox.show("Remove this file?", "Remove?", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION)
  </attribute>
</button>

link publish delete flag offensive edit

answered 2009-03-25 17:53:09 +0800

vaishali gravatar image vaishali
78 1

You can use alert method like

<button label="alert no zk title" action="onclick:alert('zk')" />

link publish delete flag offensive edit

answered 2011-02-08 00:41:29 +0800

tomyeh gravatar image tomyeh
610 1 3
http://blog.zkoss.org ZK Team

The default title is based on WebApp.getAppName(). You could change it to the value you want (for example, invoke it in your implementation of WebAppInit).

Since 5.0.6, we introduced a library property to simplify it. Please refer to here.

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-03-25 08:14:31 +0800

Seen: 509 times

Last updated: Feb 08 '11

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