MCPcopy
hub / github.com/modstart-lib/aigcpanel / constructor

Method constructor

src/lib/ui.ts:90–105  ·  view source on GitHub ↗
(
        tabContainer: HTMLElement,
        contentContainer: HTMLElement,
        option: {} = {},
    )

Source from the content-addressed store, hash-verified

88 private scrollEndCallback: (() => void) | null = null;
89
90 constructor(
91 tabContainer: HTMLElement,
92 contentContainer: HTMLElement,
93 option: {} = {},
94 ) {
95 this.option =
96 Object.assign(
97 {
98 activeClass: "active",
99 },
100 option,
101 ) || {};
102 this.tabContainer = tabContainer;
103 this.contentContainer = contentContainer;
104 this.init();
105 }
106
107 init() {
108 this.tabContainer.addEventListener(

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected