From 70a5f06cab3c17e13bd20cb0a08f43a8bc76e4aa Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 7 Apr 2014 14:57:54 +0800 Subject: [PATCH] Roo/bootstrap/TableBody.js --- Roo/bootstrap/TableBody.js | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Roo/bootstrap/TableBody.js b/Roo/bootstrap/TableBody.js index 42c6321627..7c5e259571 100644 --- a/Roo/bootstrap/TableBody.js +++ b/Roo/bootstrap/TableBody.js @@ -12,7 +12,7 @@ * @cfg {String} cls element class * @cfg {String} tag element tag (thead|tbody|tfoot) default tbody * @cfg {String} align Aligns the content inside the element - * @cfg {String} character Aligns the content inside the element to a character + * @cfg {String} char Aligns the content inside the element to a character * @cfg {Number} charoff Sets the number of characters the content inside the element will be aligned from the character specified by the char attribute * @cfg {String} valign Vertical aligns the content inside the element * @@ -30,7 +30,7 @@ Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component, { cls: false, tag: false, align: false, - character: false, + char: false, charoff: false, valign: false, @@ -41,17 +41,26 @@ Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component, { tag: 'tbody' } + if (this.cls) { + cfg.cls=this.cls + } if(this.tag){ cfg.tag = this.tag; } - - if (this.html) { - cfg.html=this.html + + if(this.align){ + cfg.align = this.align; } - if (this.cls) { - cfg.cls=this.cls + if(this.char){ + cfg.char = this.char; } - + if(this.charoff){ + cfg.charoff = this.charoff; + } + if(this.valign){ + cfg.valign = this.valign; + } + return cfg; } -- 2.39.2