Debian Codegraph @

dojox/mobile/bidi/Button.js

raw symbols SCIP
1 define(["dojo/_base/declare", "./common"], function(declare, common){
2
3 // module:
4 // mobile/bidi/Button
5
6 return declare(null, {
7 // summary:
8 // Support for control over text direction for mobile Button widget, using Unicode Control Characters to control text direction.
9 // description:
10 // Implementation for text direction support for Label.
11 // This class should not be used directly.
12 // Mobile Button widget loads this module when user sets "has: {'dojo-bidi': true }" in data-dojo-config.
13 _setLabelAttr: function(/*String*/ content){
14 this.inherited(arguments, [this._cv ? this._cv(content) : content]);
15 this.focusNode.innerHTML = common.enforceTextDirWithUcc(this.focusNode.innerHTML, this.textDir);
16 },
17
18 _setTextDirAttr: function(/*String*/ textDir){
19 if(!this._created || this.textDir !== textDir){
20 this._set("textDir", textDir);
21 this.focusNode.innerHTML = common.enforceTextDirWithUcc(common.removeUCCFromText(this.focusNode.innerHTML), this.textDir);
22 }
23 }
24 });
25 });