2017-05-07 08:05:36 +02:00
|
|
|
import {BaseDropdown} from './baseDropdown';
|
2017-01-01 07:35:18 +01:00
|
|
|
import {createElm, createOpt, elm} from '../dom';
|
|
|
|
import {has} from '../array';
|
|
|
|
import {matchCase} from '../string';
|
|
|
|
import {addEvt, targetEvt} from '../event';
|
2017-05-07 08:05:36 +02:00
|
|
|
import {SELECT, MULTIPLE, NONE} from '../const';
|
2017-07-09 07:11:51 +02:00
|
|
|
import {defaultsStr, defaultsBool} from '../settings';
|
2016-02-02 08:24:16 +01:00
|
|
|
|
2016-07-09 13:51:32 +02:00
|
|
|
/**
|
|
|
|
* Dropdown filter UI component
|
2017-05-07 08:05:36 +02:00
|
|
|
* @export
|
|
|
|
* @class Dropdown
|
|
|
|
* @extends {BaseDropdown}
|
2016-07-09 13:51:32 +02:00
|
|
|
*/
|
2017-05-07 08:05:36 +02:00
|
|
|
export class Dropdown extends BaseDropdown {
|
2015-02-14 09:59:12 +01:00
|
|
|
|
|
|
|
/**
|
2016-07-09 13:51:32 +02:00
|
|
|
* Creates an instance of Dropdown
|
2016-08-06 11:46:26 +02:00
|
|
|
* @param {TableFilter} tf TableFilter instance
|
2015-02-14 09:59:12 +01:00
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
constructor(tf) {
|
2019-02-09 14:27:55 +01:00
|
|
|
super(tf, Dropdown);
|
2016-01-06 08:12:16 +01:00
|
|
|
|
2015-02-14 09:59:12 +01:00
|
|
|
// Configuration object
|
2016-07-09 13:51:32 +02:00
|
|
|
let f = this.config;
|
2015-02-14 09:59:12 +01:00
|
|
|
|
2016-07-09 13:51:32 +02:00
|
|
|
/**
|
|
|
|
* Enable the reset filter option as first item
|
|
|
|
* @type {Boolean}
|
|
|
|
*/
|
2017-07-09 07:11:51 +02:00
|
|
|
this.enableSlcResetFilter =
|
|
|
|
defaultsBool(f.enable_slc_reset_filter, true);
|
2016-07-09 13:51:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Non empty option text
|
|
|
|
* @type {String}
|
|
|
|
*/
|
2017-07-09 07:11:51 +02:00
|
|
|
this.nonEmptyText = defaultsStr(f.non_empty_text, '(Non empty)');
|
2016-07-09 13:51:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tooltip text appearing on multiple select
|
|
|
|
* @type {String}
|
|
|
|
*/
|
2017-07-09 07:11:51 +02:00
|
|
|
this.multipleSlcTooltip = defaultsStr(f.multiple_slc_tooltip,
|
|
|
|
'Use Ctrl/Cmd key for multiple selections');
|
2016-01-06 08:12:16 +01:00
|
|
|
}
|
|
|
|
|
2016-07-09 13:51:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Drop-down filter focus event handler
|
|
|
|
* @param {Event} e DOM Event
|
|
|
|
* @private
|
|
|
|
*/
|
2016-01-11 08:35:21 +01:00
|
|
|
onSlcFocus(e) {
|
2016-06-02 06:13:56 +02:00
|
|
|
let elm = targetEvt(e);
|
2016-01-11 08:35:21 +01:00
|
|
|
let tf = this.tf;
|
|
|
|
// select is populated when element has focus
|
2016-05-04 14:02:22 +02:00
|
|
|
if (tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {
|
2016-01-11 08:35:21 +01:00
|
|
|
let ct = elm.getAttribute('ct');
|
|
|
|
this.build(ct);
|
|
|
|
}
|
2016-04-05 10:51:56 +02:00
|
|
|
this.emitter.emit('filter-focus', tf, elm);
|
2016-01-11 08:35:21 +01:00
|
|
|
}
|
|
|
|
|
2016-07-09 13:51:32 +02:00
|
|
|
/**
|
|
|
|
* Drop-down filter change event handler
|
|
|
|
* @private
|
|
|
|
*/
|
2016-01-12 07:46:27 +01:00
|
|
|
onSlcChange() {
|
2016-05-04 14:02:22 +02:00
|
|
|
if (this.tf.onSlcChange) {
|
2016-01-12 07:46:27 +01:00
|
|
|
this.tf.filter();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-01 07:31:48 +01:00
|
|
|
/**
|
|
|
|
* Refresh all drop-down filters
|
|
|
|
*/
|
|
|
|
refreshAll() {
|
2017-05-07 08:05:36 +02:00
|
|
|
let selectFlts = this.tf.getFiltersByType(SELECT, true);
|
|
|
|
let multipleFlts = this.tf.getFiltersByType(MULTIPLE, true);
|
|
|
|
let colIdxs = selectFlts.concat(multipleFlts);
|
|
|
|
this.refreshFilters(colIdxs);
|
2017-01-01 07:31:48 +01:00
|
|
|
}
|
|
|
|
|
2016-01-06 08:12:16 +01:00
|
|
|
/**
|
|
|
|
* Initialize drop-down filter
|
|
|
|
* @param {Number} colIndex Column index
|
|
|
|
* @param {Boolean} isExternal External filter flag
|
|
|
|
* @param {DOMElement} container Dom element containing the filter
|
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
init(colIndex, isExternal, container) {
|
2016-01-06 08:12:16 +01:00
|
|
|
let tf = this.tf;
|
|
|
|
let col = tf.getFilterType(colIndex);
|
|
|
|
let externalFltTgtId = isExternal ?
|
2017-12-17 12:02:56 +01:00
|
|
|
tf.externalFltIds[colIndex] : null;
|
2016-01-06 08:12:16 +01:00
|
|
|
|
2016-05-24 10:42:11 +02:00
|
|
|
let slc = createElm(SELECT,
|
2016-11-10 04:16:57 +01:00
|
|
|
['id', tf.buildFilterId(colIndex)],
|
2016-01-06 08:12:16 +01:00
|
|
|
['ct', colIndex], ['filled', '0']
|
|
|
|
);
|
|
|
|
|
2016-05-07 13:59:42 +02:00
|
|
|
if (col === MULTIPLE) {
|
|
|
|
slc.multiple = MULTIPLE;
|
2016-01-06 08:12:16 +01:00
|
|
|
slc.title = this.multipleSlcTooltip;
|
|
|
|
}
|
2016-05-20 10:08:39 +02:00
|
|
|
slc.className = col.toLowerCase() === SELECT ?
|
2016-01-06 08:12:16 +01:00
|
|
|
tf.fltCssClass : tf.fltMultiCssClass;
|
|
|
|
|
|
|
|
//filter is appended in container element
|
2016-05-04 14:02:22 +02:00
|
|
|
if (externalFltTgtId) {
|
2016-05-25 09:31:53 +02:00
|
|
|
elm(externalFltTgtId).appendChild(slc);
|
2016-01-06 08:12:16 +01:00
|
|
|
} else {
|
|
|
|
container.appendChild(slc);
|
|
|
|
}
|
|
|
|
|
2016-01-11 02:41:25 +01:00
|
|
|
tf.fltIds.push(slc.id);
|
2016-01-06 08:12:16 +01:00
|
|
|
|
2016-05-04 14:02:22 +02:00
|
|
|
if (!tf.loadFltOnDemand) {
|
2016-01-06 08:12:16 +01:00
|
|
|
this.build(colIndex);
|
|
|
|
} else {
|
|
|
|
//1st option is created here since build isn't invoked
|
2016-12-01 11:29:38 +01:00
|
|
|
let opt0 = createOpt(tf.getClearFilterText(colIndex), '');
|
2016-01-06 08:12:16 +01:00
|
|
|
slc.appendChild(opt0);
|
|
|
|
}
|
|
|
|
|
2016-06-02 06:13:56 +02:00
|
|
|
addEvt(slc, 'change', () => this.onSlcChange());
|
|
|
|
addEvt(slc, 'focus', (e) => this.onSlcFocus(e));
|
2015-02-14 09:59:12 +01:00
|
|
|
|
2016-01-17 07:56:15 +01:00
|
|
|
this.emitter.on(
|
|
|
|
['build-select-filter'],
|
2016-05-04 14:02:22 +02:00
|
|
|
(tf, colIndex, isLinked, isExternal) =>
|
2016-01-17 07:56:15 +01:00
|
|
|
this.build(colIndex, isLinked, isExternal)
|
|
|
|
);
|
2016-01-20 07:14:32 +01:00
|
|
|
this.emitter.on(
|
|
|
|
['select-options'],
|
2016-05-04 14:02:22 +02:00
|
|
|
(tf, colIndex, values) => this.selectOptions(colIndex, values)
|
2016-01-20 07:14:32 +01:00
|
|
|
);
|
2017-01-01 07:31:48 +01:00
|
|
|
this.emitter.on(['rows-changed'], () => this.refreshAll());
|
2016-01-17 07:56:15 +01:00
|
|
|
|
2018-09-17 11:32:16 +02:00
|
|
|
this.emitter.on(['after-filtering'], () => this.linkFilters());
|
|
|
|
|
2016-12-24 13:35:26 +01:00
|
|
|
/** @inherited */
|
2016-01-06 08:12:16 +01:00
|
|
|
this.initialized = true;
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
|
|
|
|
2015-02-15 04:25:22 +01:00
|
|
|
/**
|
|
|
|
* Build drop-down filter UI
|
2015-02-14 09:59:12 +01:00
|
|
|
* @param {Number} colIndex Column index
|
2016-11-15 06:49:19 +01:00
|
|
|
* @param {Boolean} isLinked Enable linked filters behaviour
|
2015-02-14 09:59:12 +01:00
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
build(colIndex, isLinked = false) {
|
2016-01-06 08:12:16 +01:00
|
|
|
let tf = this.tf;
|
2017-11-10 12:29:37 +01:00
|
|
|
colIndex = Number(colIndex);
|
2015-02-14 09:59:12 +01:00
|
|
|
|
2016-01-02 15:33:31 +01:00
|
|
|
this.emitter.emit('before-populating-filter', tf, colIndex);
|
|
|
|
|
2017-05-09 12:47:05 +02:00
|
|
|
/** @inherited */
|
2015-02-15 04:25:22 +01:00
|
|
|
this.opts = [];
|
2017-05-09 12:47:05 +02:00
|
|
|
/** @inherited */
|
2015-02-15 04:25:22 +01:00
|
|
|
this.optsTxt = [];
|
|
|
|
|
2017-11-10 12:29:37 +01:00
|
|
|
let slc = tf.getFilterElement(colIndex);
|
2015-02-14 09:59:12 +01:00
|
|
|
|
|
|
|
//custom select test
|
2017-05-09 12:47:05 +02:00
|
|
|
/** @inherited */
|
2015-06-02 09:33:16 +02:00
|
|
|
this.isCustom = tf.isCustomOptions(colIndex);
|
2015-02-14 09:59:12 +01:00
|
|
|
|
2017-05-06 13:32:01 +02:00
|
|
|
//Retrieves custom values
|
|
|
|
if (this.isCustom) {
|
|
|
|
let customValues = tf.getCustomOptions(colIndex);
|
|
|
|
this.opts = customValues[0];
|
|
|
|
this.optsTxt = customValues[1];
|
|
|
|
}
|
|
|
|
|
2015-02-14 09:59:12 +01:00
|
|
|
//custom selects text
|
2016-04-05 18:09:21 +02:00
|
|
|
let activeIdx;
|
|
|
|
let activeFilterId = tf.getActiveFilterId();
|
2016-05-04 14:02:22 +02:00
|
|
|
if (isLinked && activeFilterId) {
|
2016-04-05 18:09:21 +02:00
|
|
|
activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
|
|
|
|
2016-01-06 08:12:16 +01:00
|
|
|
let excludedOpts = null,
|
2015-02-14 09:59:12 +01:00
|
|
|
filteredDataCol = null;
|
2016-05-04 14:02:22 +02:00
|
|
|
if (isLinked && tf.disableExcludedOptions) {
|
2015-02-14 09:59:12 +01:00
|
|
|
excludedOpts = [];
|
|
|
|
filteredDataCol = [];
|
|
|
|
}
|
|
|
|
|
2017-11-10 12:29:37 +01:00
|
|
|
let eachRow = tf.eachRow();
|
|
|
|
eachRow(
|
|
|
|
(row) => {
|
|
|
|
let cellValue = tf.getCellValue(row.cells[colIndex]);
|
|
|
|
//Vary Peter's patch
|
|
|
|
let cellString = matchCase(cellValue, tf.caseSensitive);
|
2015-02-14 09:59:12 +01:00
|
|
|
|
2016-11-15 06:49:19 +01:00
|
|
|
// checks if celldata is already in array
|
|
|
|
if (!has(this.opts, cellString, tf.caseSensitive)) {
|
2017-01-16 04:04:55 +01:00
|
|
|
this.opts.push(cellValue);
|
2016-11-15 06:49:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (isLinked && tf.disableExcludedOptions) {
|
2017-11-10 12:29:37 +01:00
|
|
|
let filteredCol = filteredDataCol[colIndex];
|
2016-11-15 06:49:19 +01:00
|
|
|
if (!filteredCol) {
|
2017-11-10 12:29:37 +01:00
|
|
|
filteredCol = tf.getVisibleColumnValues(colIndex);
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
2016-11-15 06:49:19 +01:00
|
|
|
if (!has(filteredCol, cellString, tf.caseSensitive) &&
|
|
|
|
!has(excludedOpts, cellString, tf.caseSensitive)) {
|
2017-01-16 04:04:55 +01:00
|
|
|
excludedOpts.push(cellValue);
|
2016-11-15 06:49:19 +01:00
|
|
|
}
|
|
|
|
}
|
2017-11-10 12:29:37 +01:00
|
|
|
},
|
|
|
|
// continue conditions function
|
|
|
|
(row, k) => {
|
|
|
|
// excluded rows don't need to appear on selects as always valid
|
|
|
|
if (tf.excludeRows.indexOf(k) !== -1) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// checks if row has expected number of cells
|
|
|
|
if (row.cells.length !== tf.nbCells || this.isCustom) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isLinked && !this.isValidLinkedValue(k, activeIdx)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
2015-02-14 09:59:12 +01:00
|
|
|
|
2017-05-07 08:05:36 +02:00
|
|
|
//sort options
|
2017-05-06 13:32:01 +02:00
|
|
|
this.opts = this.sortOptions(colIndex, this.opts);
|
|
|
|
if (excludedOpts) {
|
|
|
|
excludedOpts = this.sortOptions(colIndex, excludedOpts);
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
|
|
|
|
2017-05-06 13:32:01 +02:00
|
|
|
//populates drop-down
|
|
|
|
this.addOptions(colIndex, slc, isLinked, excludedOpts);
|
|
|
|
|
|
|
|
this.emitter.emit('after-populating-filter', tf, colIndex, slc);
|
|
|
|
}
|
|
|
|
|
2015-02-14 09:59:12 +01:00
|
|
|
/**
|
|
|
|
* Add drop-down options
|
2015-02-15 04:25:22 +01:00
|
|
|
* @param {Number} colIndex Column index
|
|
|
|
* @param {Object} slc Select Dom element
|
2015-06-10 12:53:20 +02:00
|
|
|
* @param {Boolean} isLinked Enable linked refresh behaviour
|
2015-02-15 04:25:22 +01:00
|
|
|
* @param {Array} excludedOpts Array of excluded options
|
2015-02-14 09:59:12 +01:00
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
addOptions(colIndex, slc, isLinked, excludedOpts) {
|
2016-01-06 08:12:16 +01:00
|
|
|
let tf = this.tf,
|
2015-02-14 09:59:12 +01:00
|
|
|
slcValue = slc.value;
|
|
|
|
|
|
|
|
slc.innerHTML = '';
|
|
|
|
slc = this.addFirstOption(slc);
|
|
|
|
|
2016-05-04 14:02:22 +02:00
|
|
|
for (let y = 0; y < this.opts.length; y++) {
|
|
|
|
if (this.opts[y] === '') {
|
2015-02-14 09:59:12 +01:00
|
|
|
continue;
|
|
|
|
}
|
2016-01-06 08:12:16 +01:00
|
|
|
let val = this.opts[y]; //option value
|
|
|
|
let lbl = this.isCustom ? this.optsTxt[y] : val; //option text
|
|
|
|
let isDisabled = false;
|
2016-05-04 14:02:22 +02:00
|
|
|
if (isLinked && tf.disableExcludedOptions &&
|
2016-05-26 04:21:27 +02:00
|
|
|
has(excludedOpts, matchCase(val, tf.caseSensitive),
|
|
|
|
tf.caseSensitive)) {
|
2015-02-14 09:59:12 +01:00
|
|
|
isDisabled = true;
|
|
|
|
}
|
|
|
|
|
2016-02-03 08:34:46 +01:00
|
|
|
let opt;
|
|
|
|
//fill select on demand
|
2016-05-04 14:02:22 +02:00
|
|
|
if (tf.loadFltOnDemand && slcValue === this.opts[y] &&
|
2016-05-07 13:59:42 +02:00
|
|
|
tf.getFilterType(colIndex) === SELECT) {
|
2016-05-24 10:42:11 +02:00
|
|
|
opt = createOpt(lbl, val, true);
|
2015-02-14 09:59:12 +01:00
|
|
|
} else {
|
2016-05-24 10:42:11 +02:00
|
|
|
opt = createOpt(lbl, val, false);
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
2016-05-04 14:02:22 +02:00
|
|
|
if (isDisabled) {
|
2016-02-03 08:34:46 +01:00
|
|
|
opt.disabled = true;
|
|
|
|
}
|
|
|
|
slc.appendChild(opt);
|
2015-02-14 09:59:12 +01:00
|
|
|
}// for y
|
|
|
|
|
|
|
|
slc.setAttribute('filled', '1');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Add drop-down header option
|
|
|
|
* @param {Object} slc Select DOM element
|
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
addFirstOption(slc) {
|
2016-02-03 08:34:46 +01:00
|
|
|
let tf = this.tf;
|
2016-12-01 03:58:09 +01:00
|
|
|
let colIdx = tf.getColumnIndexFromFilterId(slc.id);
|
|
|
|
let opt0 = createOpt((!this.enableSlcResetFilter ?
|
|
|
|
'' : tf.getClearFilterText(colIdx)), '');
|
2016-05-04 14:02:22 +02:00
|
|
|
if (!this.enableSlcResetFilter) {
|
2016-05-07 13:59:42 +02:00
|
|
|
opt0.style.display = NONE;
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
2016-02-03 08:34:46 +01:00
|
|
|
slc.appendChild(opt0);
|
2016-05-04 14:02:22 +02:00
|
|
|
if (tf.enableEmptyOption) {
|
2016-05-24 10:42:11 +02:00
|
|
|
let opt1 = createOpt(tf.emptyText, tf.emOperator);
|
2016-02-03 08:34:46 +01:00
|
|
|
slc.appendChild(opt1);
|
|
|
|
}
|
2016-05-04 14:02:22 +02:00
|
|
|
if (tf.enableNonEmptyOption) {
|
2016-05-24 10:42:11 +02:00
|
|
|
let opt2 = createOpt(tf.nonEmptyText, tf.nmOperator);
|
2016-02-03 08:34:46 +01:00
|
|
|
slc.appendChild(opt2);
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|
|
|
|
return slc;
|
|
|
|
}
|
|
|
|
|
2016-01-21 08:29:09 +01:00
|
|
|
/**
|
|
|
|
* Select filter options programmatically
|
|
|
|
* @param {Number} colIndex Column index
|
|
|
|
* @param {Array} values Array of option values to select
|
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
selectOptions(colIndex, values = []) {
|
2016-01-20 07:14:32 +01:00
|
|
|
let tf = this.tf;
|
2017-01-01 07:35:18 +01:00
|
|
|
if (values.length === 0) {
|
2016-01-21 08:29:09 +01:00
|
|
|
return;
|
2016-01-20 07:14:32 +01:00
|
|
|
}
|
|
|
|
let slc = tf.getFilterElement(colIndex);
|
2016-05-04 14:02:22 +02:00
|
|
|
[].forEach.call(slc.options, (option) => {
|
2016-01-20 07:14:32 +01:00
|
|
|
// Empty value means clear all selections and first option is the
|
|
|
|
// clear all option
|
2016-05-04 14:02:22 +02:00
|
|
|
if (values[0] === '' || option.value === '') {
|
2016-01-20 07:14:32 +01:00
|
|
|
option.selected = false;
|
|
|
|
}
|
|
|
|
|
2016-05-20 08:58:54 +02:00
|
|
|
if (option.value !== '' && has(values, option.value, true)) {
|
2016-01-20 07:14:32 +01:00
|
|
|
option.selected = true;
|
|
|
|
}//if
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-05-04 14:02:22 +02:00
|
|
|
/**
|
|
|
|
* Get filter values for a given column index
|
|
|
|
* @param {Number} colIndex Column index
|
|
|
|
* @returns {Array} values Array of selected values
|
|
|
|
*/
|
|
|
|
getValues(colIndex) {
|
|
|
|
let tf = this.tf;
|
|
|
|
let slc = tf.getFilterElement(colIndex);
|
|
|
|
let values = [];
|
2016-05-08 10:03:39 +02:00
|
|
|
|
|
|
|
// IE >= 9 does not support the selectedOptions property :(
|
|
|
|
if (slc.selectedOptions) {
|
|
|
|
[].forEach.call(slc.selectedOptions,
|
|
|
|
option => values.push(option.value));
|
|
|
|
} else {
|
|
|
|
[].forEach.call(slc.options, (option) => {
|
|
|
|
if (option.selected) {
|
|
|
|
values.push(option.value);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2016-05-04 14:02:22 +02:00
|
|
|
|
|
|
|
return values;
|
|
|
|
}
|
|
|
|
|
2016-07-09 13:51:32 +02:00
|
|
|
/**
|
|
|
|
* Destroy Dropdown instance
|
|
|
|
*/
|
2016-05-04 14:02:22 +02:00
|
|
|
destroy() {
|
2016-01-17 07:56:15 +01:00
|
|
|
this.emitter.off(
|
|
|
|
['build-select-filter'],
|
2016-05-04 14:02:22 +02:00
|
|
|
(colIndex, isLinked, isExternal) =>
|
2016-01-17 07:56:15 +01:00
|
|
|
this.build(colIndex, isLinked, isExternal)
|
|
|
|
);
|
2016-01-20 07:14:32 +01:00
|
|
|
this.emitter.off(
|
|
|
|
['select-options'],
|
2016-05-04 14:02:22 +02:00
|
|
|
(tf, colIndex, values) => this.selectOptions(colIndex, values)
|
2016-01-20 07:14:32 +01:00
|
|
|
);
|
2017-01-01 07:31:48 +01:00
|
|
|
this.emitter.off(['rows-changed'], () => this.refreshAll());
|
2018-09-17 11:32:16 +02:00
|
|
|
this.emitter.off(['after-filtering'], () => this.linkFilters());
|
2016-12-24 13:35:26 +01:00
|
|
|
this.initialized = false;
|
2016-01-17 07:56:15 +01:00
|
|
|
}
|
2015-02-14 09:59:12 +01:00
|
|
|
}
|