Method
constructor
(
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
Tested by
no test coverage detected