blob: 7e2a1fccc4342b7ef25651ca4d0254c65412282e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
}
});
});
|