webui-aria2/js/libs/dojox/mobile/RoundRectCategory.js.uncompressed.js
2012-05-01 19:52:07 +08:00

42 lines
994 B
JavaScript

//>>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;
}
});
});