|
|
|
_appendEvents(
) :
void
append events to buttons (bold, italic, underline)
|
|
|
|
_disableInactiveElements(
) :
void
disable inactive elements (buttons/inputfields)
|
|
|
|
_displayButtonState(
) :
void
display button state (pressed, not pressed)
|
|
|
|
_toggleValue(
evt
: Event
) :
void
event handler for button values (bold, italic, underline)
Toggles between values '0' and '1' of button input fields and throws an onchange event
on the input field. (This triggers the display handler)
Parameter |
Type |
Usage |
Description |
evt |
Event |
required |
|
|
|
|
|
buildRendering(
) :
void
Construct the UI for this widget from a template, setting this.domNode.
Lookup cached version of template, and download to cache if it
isn't there already. Returns either a DomNode or a string, depending on
whether or not the template contains ${foo} replacement parameters.
|
|
|
|
constructor(
) :
void
|
|
|
|
createNodesFromText(
text
: String
) :
void
Parameter |
Type |
Usage |
Description |
text |
String |
required |
|
|
|
|
|
getCachedTemplate(
templatePath
: String
templateString
: String
alwaysUseString
translation
) :
void
static method to get a template based on the templatePath or
templateString key
Parameter |
Type |
Usage |
Description |
templatePath |
String |
required |
the URL to get the template from. dojo.uri.Uri is often passed as well. |
templateString |
String |
optional |
a string to use in lieu of fetching the template from a URL |
alwaysUseString |
|
required |
|
translation |
|
required |
|
|
|
|
|
getTranslationName(
) :
void
return the translation file name (without locale and .xml)
convert this.templatePath to this.translationName of translation name is null
Examples
|
|
|
|
postCreate(
) :
void
Initialize widget: disable inactive buttons, set button state, add button events
|
|
|
|
postMixInProperties(
) :
void
|
|
|
|
translate(
key
: String
vars
: Object
) :
void
Parameter |
Type |
Usage |
Description |
key |
String |
required |
|
vars |
Object |
optional |
|
|