1
0
Fork 0
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:
Max Guglielmi 2016-01-09 20:22:57 +11:00
commit fbd8fa52d2
12 changed files with 10275 additions and 43 deletions

View file

@ -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,