mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 04:15:51 +00:00
2602 dev init
This commit is contained in:
22
SL/module/TableModule.js
Normal file
22
SL/module/TableModule.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Module, ModuleBuilder } from './Module.js';
|
||||
import { bindTableEvents } from '../../ui/table-bindings.js';
|
||||
|
||||
const builder = new ModuleBuilder()
|
||||
.name('TableModule')
|
||||
.view('assets/amily-data-table/Memorisation-forms.html')
|
||||
.strict(true)
|
||||
.required(['mount']);
|
||||
|
||||
export default class TableModule extends Module {
|
||||
constructor() {
|
||||
super(builder);
|
||||
}
|
||||
|
||||
async mount() {
|
||||
if (this.el) {
|
||||
this.el.id = 'amily2_memorisation_forms_panel';
|
||||
this.el.style.display = 'none';
|
||||
}
|
||||
bindTableEvents();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user