@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / UIButtonOptions
Type Alias: UIButtonOptions ​
ts
type UIButtonOptions = {
label?: string;
actionId?: string;
width?: number;
height?: number;
fontSize?: number;
fontWeight?: number;
textColor?: string;
backgroundColor?: string;
backgroundOpacity?: number;
cornerRadius?: number;
borderWidth?: number;
borderColor?: string;
};Defined in: components/UIButton.ts:4
Optional initializer for UIButtonComponent.
Properties ​
| Property | Type | Defined in |
|---|---|---|
label? | string | components/UIButton.ts:5 |
actionId? | string | components/UIButton.ts:6 |
width? | number | components/UIButton.ts:7 |
height? | number | components/UIButton.ts:8 |
fontSize? | number | components/UIButton.ts:9 |
fontWeight? | number | components/UIButton.ts:10 |
textColor? | string | components/UIButton.ts:11 |
backgroundColor? | string | components/UIButton.ts:12 |
backgroundOpacity? | number | components/UIButton.ts:13 |
cornerRadius? | number | components/UIButton.ts:14 |
borderWidth? | number | components/UIButton.ts:15 |
borderColor? | string | components/UIButton.ts:16 |

