sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.4 KiB

define([
"dojo/_base/declare",
"./common"
], function(declare, common){
// module:
// dojox/mobile/bidi/CarouselItem
return declare(null, {
// summary:
// Support for control over text direction for mobile CarouselItem widget, using Unicode Control Characters to control text direction.
// description:
// Implementation for text direction support for Header and Footer.
// This class should not be used directly.
// Mobile CarouselItem widget loads this module when user sets "has: {'dojo-bidi': true }" in data-dojo-config.
_setHeaderTextAttr: function(text){
this._set("headerText", text);
this.headerTextNode.innerHTML = this._cv ? this._cv(text) : text;
var p = this.getParent() ? this.getParent().getParent() : null;
this.textDir = this.textDir ? this.textDir : p ? p.get("textDir") : ""; //take textDir from Carousel
if(this.textDir){
this.headerTextNode.innerHTML = common.enforceTextDirWithUcc(this.headerTextNode.innerHTML, this.textDir);
}
},
_setFooterTextAttr: function(text){
this._set("footerText", text);
this.footerTextNode.innerHTML = this._cv ? this._cv(text) : text;
var p = this.getParent() ? this.getParent().getParent() : null;
this.textDir = this.textDir ? this.textDir : p ? p.get("textDir") : ""; //take textDir from Carousel
if(this.textDir){
this.footerTextNode.innerHTML = _BidiSupport.enforceTextDirWithUcc(this.footerTextNode.innerHTML, this.textDir);
}
}
});
});