projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
53bb416
)
Roo/bootstrap/CardHeader.js
author
Alan Knowles
<alan@roojs.com>
Tue, 3 Nov 2020 08:22:01 +0000
(16:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 3 Nov 2020 08:22:01 +0000
(16:22 +0800)
Roo/bootstrap/CardHeader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardHeader.js
b/Roo/bootstrap/CardHeader.js
index
3955457
..
8195dbf
100644
(file)
--- a/
Roo/bootstrap/CardHeader.js
+++ b/
Roo/bootstrap/CardHeader.js
@@
-9,12
+9,6
@@
* @class Roo.bootstrap.CardHeader
* @extends Roo.bootstrap.Element
* Bootstrap Element class
* @class Roo.bootstrap.CardHeader
* @extends Roo.bootstrap.Element
* Bootstrap Element class
- * @cfg {String} html contents of the element
- * @cfg {String} tag tag of the element
- * @cfg {String} cls class of the element
- * @cfg {Boolean} preventDefault (true|false) default false
- * @cfg {Boolean} clickable (true|false) default false
- *
* @constructor
* Create a new Element
* @param {Object} config The config object
* @constructor
* Create a new Element
* @param {Object} config The config object
@@
-38,51
+32,19
@@
Roo.bootstrap.Element = function(config){
Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
tag: 'div',
Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
tag: 'div',
- cls: '',
- html: '',
- preventDefault: false,
- clickable: false,
- container_method : getCardHeader
+ container_method : 'getCardHeader',
- getAutoCreate : function(){
+ getAutoCreate : function()
{
var cfg = {
var cfg = {
- tag: this.tag,
- // cls: this.cls, double assign in parent class Component.js :: onRender
- html: this.html
+ tag: 'div',
+ cls : 'card-header'
};
return cfg;
};
return cfg;
- },
-
- initEvents: function()
- {
- Roo.bootstrap.Element.superclass.initEvents.call(this);
-
- if(this.clickable){
- this.el.on('click', this.onClick, this);
- }
-
- },
-
- onClick : function(e)
- {
- if(this.preventDefault){
- e.preventDefault();
- }
-
- this.fireEvent('click', this, e);
- },
+ }
- getValue : function()
- {
- return this.el.dom.innerHTML;
- },
- setValue : function(value)
- {
- this.el.dom.innerHTML = value;
- }
});
});