Method
constructor
({
items,
active,
callback
})
Source from the content-addressed store, hash-verified
| 7 | |
| 8 | export class Menu extends Interface { |
| 9 | constructor({ |
| 10 | items, |
| 11 | active, |
| 12 | callback |
| 13 | }) { |
| 14 | super('.menu'); |
| 15 | |
| 16 | this.names = items; |
| 17 | this.index = this.names.indexOf(active); |
| 18 | this.callback = callback; |
| 19 | |
| 20 | this.active = -1; |
| 21 | this.items = []; |
| 22 | |
| 23 | this.init(); |
| 24 | this.initViews(); |
| 25 | |
| 26 | this.update(); |
| 27 | } |
| 28 | |
| 29 | init() { |
| 30 | this.css({ |
Callers
nothing calls this directly
Tested by
no test coverage detected