views:

175

answers:

1

Is there any possible way to change the "cancel" tool tip that pops up over the X box on a dijit.dialog? I just want it to read "close".

I'm somewhat new to dojo. I expect this might be just a dumb question that has a really easy answer, but I am finding no examples.

Thanks in advance.

A: 

That's the "buttonCancel" NLS string from dijit/nls... so you could do one of:

  1. modify the translations in dijit's nls/ directory
  2. override the Dialog class defining a new template (instead of Dialog.html) that has your title text
  3. dojo.connect(dijit.Dialog.prototype, "postMixInProperties", function(){ this.buttonCancel="Close" })
Bill Keese