1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-17 05:46:39 +02:00
TableFilter/src/tfBase.js
koalyptus 37f6db7025 wip
2019-01-15 23:29:13 +11:00

21 lines
525 B
JavaScript

import {defaultsStr} from './settings';
import {toCamelCase} from './string';
export class TfBase {
constructor(tf, cls = {}) {
/**
* TableFilter instance
* @type {TableFilter}
*/
this.tf = tf;
/**
* Feature name, retrieved from alternate class name if found or from
* camelised class name
* @type {String}
*/
this.feature = defaultsStr(cls.altName, toCamelCase(cls.name));
this.tf._mod_.push(this.feature);
}
}