Sha256: be152d42de990423ae06edf8ad531ea92632b7a64ae9d47da2cce33864f23d28
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
define("dojox/mobile/RoundRectCategory", [ "dojo/_base/declare", "dojo/_base/window", "dojo/dom-construct", "dijit/_Contained", "dijit/_WidgetBase" ], function(declare, win, domConstruct, Contained, WidgetBase){ // module: // dojox/mobile/RoundRectCategory return declare("dojox.mobile.RoundRectCategory", [WidgetBase, Contained], { // summary: // A category header for a rounded rectangle list. // label: String // A label of the category. If the label is not specified, // innerHTML is used as a label. label: "", // tag: String // A name of html tag to create as domNode. tag: "h2", /* internal properties */ // baseClass: String // The name of the CSS class of this widget. baseClass: "mblRoundRectCategory", buildRendering: function(){ var domNode = this.domNode = this.containerNode = this.srcNodeRef || domConstruct.create(this.tag); this.inherited(arguments); if(!this.label && domNode.childNodes.length === 1 && domNode.firstChild.nodeType === 3){ // if it has only one text node, regard it as a label this.label = domNode.firstChild.nodeValue; } }, _setLabelAttr: function(/*String*/label){ // summary: // Sets the category header text. // tags: // private this.label = label; this.domNode.innerHTML = this._cv ? this._cv(label) : label; } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/mobile/RoundRectCategory.js.uncompressed.js |