Last change
on this file since 529 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
924 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", |
---|
3 | "./common", |
---|
4 | "dojo/dom-class" |
---|
5 | ], function(declare, common, domClass){ |
---|
6 | |
---|
7 | // module: |
---|
8 | // mobile/bidi/TabBarButton |
---|
9 | |
---|
10 | return declare(null, { |
---|
11 | // summary: |
---|
12 | // Support for control over text direction for mobile TabBarButton widget, using Unicode Control Characters to control text direction. |
---|
13 | // description: |
---|
14 | // This class should not be used directly. |
---|
15 | // Mobile TabBarButton widget loads this module when user sets "has: {'dojo-bidi': true }" in data-dojo-config. |
---|
16 | _setBadgeAttr: function(/*String*/ text){ |
---|
17 | this.inherited(arguments); |
---|
18 | this.badgeObj.setTextDir(this.textDir); |
---|
19 | }, |
---|
20 | _setIcon: function(icon, n){ |
---|
21 | this.inherited(arguments); |
---|
22 | // dojox.mobile mirroring support |
---|
23 | if(this.iconDivNode && !this.isLeftToRight()){ |
---|
24 | domClass.remove(this.iconDivNode, "mblTabBarButtonIconArea"); |
---|
25 | domClass.add(this.iconDivNode, "mblTabBarButtonIconAreaRtl"); |
---|
26 | } |
---|
27 | } |
---|
28 | }); |
---|
29 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.