Sha256: 82bf15b7a9cb6e54452d9e0347b3605b1afbcfe8621b1613dab6a0e0d51eb23b

Contents?: true

Size: 1.3 KB

Versions: 9

Compression:

Stored size: 1.3 KB

Contents

//>>built
define("dijit/form/HorizontalRuleLabels",["dojo/_base/declare","dojo/number","dojo/query","./HorizontalRule"],function(_1,_2,_3,_4){
return _1("dijit.form.HorizontalRuleLabels",_4,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><div class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</div></div>",_calcPosition:function(_5){
return _5;
},_genHTML:function(_6,_7){
return this._positionPrefix+this._calcPosition(_6)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[_7]+this._suffix;
},getLabels:function(){
var _8=this.labels;
if(!_8.length&&this.srcNodeRef){
_8=_3("> li",this.srcNodeRef).map(function(_9){
return String(_9.innerHTML);
});
}
if(!_8.length&&this.count>1){
var _a=this.minimum;
var _b=(this.maximum-_a)/(this.count-1);
for(var i=0;i<this.count;i++){
_8.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":_2.format(_a,this.constraints));
_a+=_b;
}
}
return _8;
},postMixInProperties:function(){
this.inherited(arguments);
this.labels=this.getLabels();
this.count=this.labels.length;
}});
});

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dijit-rails-0.14.0 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dojo_rails-0.0.2 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dojo_rails-0.0.1 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dijit-rails-0.11.0 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dijit-rails-0.10.4 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dijit-rails-0.10.3 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dijit-rails-0.10.2 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dijit-rails-0.10.1 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js
dijit-rails-0.10.0 vendor/assets/javascripts/dijit/form/HorizontalRuleLabels.js