Created
December 9, 2015 21:22
-
-
Save NamTThai/9360bb9a7cea932814cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eFilterCustom: function(headerName, filterValue, item) { | |
switch(headerName) { | |
case "ID": | |
switch(filterValue) { | |
case "Selected": | |
return item.selected; | |
case "Not Selected": | |
return !item.selected; | |
default: | |
return this._defaultFilter(item.id, headerName); | |
} | |
break; | |
default: | |
return this._defaultFilter(item[headerName], headerName); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment