MCPcopy Create free account
hub / github.com/chieapp/chie / constructor

Method constructor

src/view/icon-button.ts:31–38  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

29 colorMode?: 'dark' | 'light';
30
31 constructor(name: string) {
32 super();
33 this.setImage(name);
34 this.view.setStyle({
35 width: this.imageSize.width + buttonRadius * 2,
36 height: this.imageSize.height + buttonRadius * 2,
37 });
38 }
39
40 setImage(name: string) {
41 if (this.name == name)

Callers

nothing calls this directly

Calls 1

setImageMethod · 0.95

Tested by

no test coverage detected