1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-19 22:25:18 +02:00
TableFilter/src/const.js

85 lines
1.1 KiB
JavaScript
Raw Normal View History

/**
* Filter types
*/
2016-06-10 15:03:46 +02:00
/**
* Input filter type
* @type {String}
*/
export const INPUT = 'input';
2016-06-10 15:03:46 +02:00
/**
* Select filter type
* @type {String}
*/
export const SELECT = 'select';
2016-06-10 15:03:46 +02:00
/**
* Multiple select filter type
* @type {String}
*/
export const MULTIPLE = 'multiple';
2016-06-10 15:03:46 +02:00
/**
* Checklist filter type
* @type {String}
*/
export const CHECKLIST = 'checklist';
2016-06-10 15:03:46 +02:00
/**
* None filter type
* @type {String}
*/
export const NONE = 'none';
/**
* Key codes
*/
2016-06-10 15:03:46 +02:00
/**
* Enter key code
* @type {Number}
*/
export const ENTER_KEY = 13;
2016-06-10 15:03:46 +02:00
/**
* Tab key code
* @type {Number}
*/
export const TAB_KEY = 9;
2016-06-10 15:03:46 +02:00
/**
* Escape key code
* @type {Number}
*/
export const ESC_KEY = 27;
2016-06-10 15:03:46 +02:00
/**
* Up arrow key code
* @type {Number}
*/
export const UP_ARROW_KEY = 38;
2016-06-10 15:03:46 +02:00
/**
* Down arrow key code
* @type {Number}
*/
export const DOWN_ARROW_KEY = 40;
/**
* HTML tags
*/
2016-06-10 15:03:46 +02:00
/**
* Header tag
* @type {String}
*/
export const HEADER_TAG = 'TH';
2016-06-10 15:03:46 +02:00
/**
* Cell tag
* @type {String}
*/
export const CELL_TAG = 'TD';
/**
2016-06-10 15:03:46 +02:00
* Misc values
*/
/**
* Auto-filter delay in milliseconds
* @type {Number}
*/
export const AUTO_FILTER_DELAY = 750;