diff options
Diffstat (limited to 'js/dojo/dojox/mobile/RoundRectCategory.js')
| -rw-r--r-- | js/dojo/dojox/mobile/RoundRectCategory.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/js/dojo/dojox/mobile/RoundRectCategory.js b/js/dojo/dojox/mobile/RoundRectCategory.js new file mode 100644 index 0000000..7e2a1fc --- /dev/null +++ b/js/dojo/dojox/mobile/RoundRectCategory.js @@ -0,0 +1,41 @@ +//>>built +define("dojox/mobile/RoundRectCategory", [ + "dojo/_base/declare", + "dojo/_base/window", + "dijit/_Contained", + "dijit/_WidgetBase" +], function(declare, win, Contained, WidgetBase){ + +/*===== + var Contained = dijit._Contained; + var WidgetBase = dijit._WidgetBase; +=====*/ + + // module: + // dojox/mobile/RoundRectCategory + // summary: + // A category header for a rounded rectangle list. + + return declare("dojox.mobile.RoundRectCategory", [WidgetBase, Contained],{ + // summary: + // A category header for a rounded rectangle list. + + // label: String + // A label text for the widget. + label: "", + + buildRendering: function(){ + this.domNode = this.containerNode = this.srcNodeRef || win.doc.createElement("H2"); + this.domNode.className = "mblRoundRectCategory"; + if(!this.label){ + this.label = this.domNode.innerHTML; + } + }, + + _setLabelAttr: function(/*String*/label){ + this.label = label; + this.domNode.innerHTML = this._cv ? this._cv(label) : label; + } + }); + +}); |
