mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-16 23:55:46 +01:00
Added tests for dropdown change event
This commit is contained in:
parent
fe2e06e637
commit
fbd8fa52d2
12 changed files with 10275 additions and 43 deletions
|
|
@ -30,6 +30,11 @@ export class Store{
|
|||
saveFilterValues(name){
|
||||
var tf = this.tf;
|
||||
var fltValues = [];
|
||||
|
||||
if(!tf.rememberGridValues){
|
||||
return;
|
||||
}
|
||||
|
||||
//store filters' values
|
||||
for(var i=0; i<tf.fltIds.length; i++){
|
||||
var value = tf.getFilterValue(i);
|
||||
|
|
@ -66,6 +71,9 @@ export class Store{
|
|||
* @param {String} cookie name
|
||||
*/
|
||||
savePageNb(name){
|
||||
if(!this.tf.rememberPageNb){
|
||||
return;
|
||||
}
|
||||
Cookie.write(
|
||||
name,
|
||||
this.tf.feature('paging').currentPageNb,
|
||||
|
|
@ -87,6 +95,9 @@ export class Store{
|
|||
* @param {String} cookie name
|
||||
*/
|
||||
savePageLength(name){
|
||||
if(!this.tf.rememberPageLen){
|
||||
return;
|
||||
}
|
||||
Cookie.write(
|
||||
name,
|
||||
this.tf.feature('paging').resultsPerPageSlc.selectedIndex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue