Debian Codegraph @

dojox/mobile/bidi/Accordion.js

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