1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-02 14:52:50 +02:00

include files in git

This commit is contained in:
koalyptus 2019-01-22 22:23:36 +11:00
parent ecfa6c64ad
commit 64f56c22a4
5 changed files with 7045 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

34
src/register.js Normal file
View file

@ -0,0 +1,34 @@
import {defaultsStr} from './settings';
import {toCamelCase} from './string';
export class Register {
constructor(tf, cls = {}) {
console.log(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_[this.feature] = cls;
// this.instantiate(cls, this.feature);
}
// instantiate(cls, name) {
// let Cls = cls;
// console.log(Boolean(this.tf[name]),
// Boolean(Cls.alwaysInstantiate));
// if (!this.tf.hasConfig || Boolean(this.tf[name])
// || Boolean(cls.alwaysInstantiate)) {
// this.tf.Mod[name] = this.tf.Mod[name] || new Cls(tf);
// }
// }
}