mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-17 08:05:44 +01:00
Started unit tests for filter operators
This commit is contained in:
parent
91cd6a88c5
commit
20517cdfe2
13 changed files with 9552 additions and 36 deletions
|
|
@ -112,7 +112,6 @@ export class GridLayout extends Feature{
|
|||
this.tblCont.className = this.gridContCssClass;
|
||||
if(this.gridWidth){
|
||||
if(this.gridWidth.indexOf('%') != -1){
|
||||
console.log(this.gridWidth);
|
||||
this.tblCont.style.width = '100%';
|
||||
} else {
|
||||
this.tblCont.style.width = this.gridWidth;
|
||||
|
|
@ -140,7 +139,6 @@ export class GridLayout extends Feature{
|
|||
this.headTblCont.className = this.gridHeadContCssClass;
|
||||
if(this.gridWidth){
|
||||
if(this.gridWidth.indexOf('%') != -1){
|
||||
console.log(this.gridWidth);
|
||||
this.headTblCont.style.width = '100%';
|
||||
} else {
|
||||
this.headTblCont.style.width = this.gridWidth;
|
||||
|
|
|
|||
|
|
@ -589,10 +589,6 @@ export class TableFilter{
|
|||
this.Mod.checkList.checkListDiv[ct].onclick = null;
|
||||
this.Mod.checkList.checkListDiv[ct].title = '';
|
||||
}
|
||||
},
|
||||
// filter when validation button clicked
|
||||
onBtnClick() {
|
||||
this.filter();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -846,8 +842,8 @@ export class TableFilter{
|
|||
// this adds submit button
|
||||
if(i==n-1 && this.displayBtn){
|
||||
let btn = Dom.create(this.fltTypeInp,
|
||||
['id',this.prfxValButton+i+'_'+this.id],
|
||||
['type','button'], ['value',this.btnText]);
|
||||
['id', this.prfxValButton+i+'_'+this.id],
|
||||
['type', 'button'], ['value', this.btnText]);
|
||||
btn.className = this.btnCssClass;
|
||||
|
||||
//filter is appended in desired element
|
||||
|
|
@ -857,7 +853,7 @@ export class TableFilter{
|
|||
fltcell.appendChild(btn);
|
||||
}
|
||||
|
||||
Event.add(btn, 'click', this.Evt.onBtnClick.bind(this));
|
||||
Event.add(btn, 'click', ()=> this.filter());
|
||||
}//if
|
||||
|
||||
}// for i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue