| 1 |
define([ |
| 2 |
"dojo/_base/declare", |
| 3 |
"./common" |
| 4 |
], function(declare, common){ |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
return declare(null, { |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
_setLabelAttr: function(label){ |
| 17 |
this.inherited(arguments); |
| 18 |
if(this.getTextDir(label) === "rtl"){ this.domNode.style.direction = "rtl"; } |
| 19 |
this.labelDivNode.innerHTML = common.enforceTextDirWithUcc(this.labelDivNode.innerHTML, this.textDir); |
| 20 |
}, |
| 21 |
|
| 22 |
_setBackAttr: function(back){ |
| 23 |
this.inherited(arguments); |
| 24 |
this.backButton.labelNode.innerHTML = common.enforceTextDirWithUcc(this.backButton.labelNode.innerHTML, this.textDir); |
| 25 |
this.labelNode.innerHTML = this.labelDivNode.innerHTML; |
| 26 |
}, |
| 27 |
|
| 28 |
_setTextDirAttr: function( textDir){ |
| 29 |
if(!this._created || this.textDir != textDir){ |
| 30 |
this._set("textDir", textDir); |
| 31 |
if(this.getTextDir(this.labelDivNode.innerHTML) === "rtl"){ this.domNode.style.direction = "rtl"; } |
| 32 |
this.labelDivNode.innerHTML = common.enforceTextDirWithUcc(common.removeUCCFromText(this.labelDivNode.innerHTML), this.textDir); |
| 33 |
common.setTextDirForButtons(this); |
| 34 |
} |
| 35 |
} |
| 36 |
}); |
| 37 |
}); |
| 38 |
|