1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-13 19:32:40 +02:00
TableFilter/src/tfBase.js

21 lines
525 B
JavaScript
Raw Normal View History

2019-01-15 13:29:13 +01:00
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);
}
}