source: Dev/trunk/src/client/dojox/mobile/bidi/Button.js @ 529

Last change on this file since 529 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1016 bytes
Line 
1define(["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});
Note: See TracBrowser for help on using the repository browser.