Debian Codegraph @

dojox/mobile/bidi/RoundRectCategory.js

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