Skip to content

1681-engine / ui / ButtonOptions

Interface: ButtonOptions ​

Defined in: src/ui/Button.ts:18

Properties ​

content? ​

ts
optional content?: Container<ContainerChild>;

Defined in: src/ui/Button.ts:26

Centred on the face: a Label, an icon, anything. A widget that changes size by itself (a Label given new text) is centred again at once; anything else, after resize or a state change.


height ​

ts
height: number;

Defined in: src/ui/Button.ts:20


onClick? ​

ts
optional onClick?: () => void;

Defined in: src/ui/Button.ts:27

Returns ​

void


skin ​

ts
skin: ButtonSkin;

Defined in: src/ui/Button.ts:21


width ​

ts
width: number;

Defined in: src/ui/Button.ts:19

Released under the MIT License.