-
Notifications
You must be signed in to change notification settings - Fork 4
Material Button
anidivr edited this page Jan 10, 2023
·
1 revision
Material Icon Button
See Material Icon
Name | Type | Default | Description |
---|---|---|---|
text | string | blank | Optional text to show in button |
width | number | 0.1 | Width of button in meters |
height | number | 0.1 | Height of button in meters |
enabled | boolean | true | When true, button can be pressed. When false, press and hover are disabled |
buttonmaterial | Material | Theme button material (color #505050) | Button color. Set to override with custom material |
disabledmaterial | Material | Theme disabled material (color #666666) | Disabled color. Set to override with custom material |
labelmaterial | Material | Theme label material (color white) | Material used for button text. Set to override with custom material |
outlinematerial | LineBasicMaterial | Theme outline material (color white) | Material used for button outline. Set to override with custom material |
selectable | InteractiveObjects | undefined | Add to list of objects ray caster can test for overlap |
Name | Type | Description |
---|---|---|
pressed | string | Triggered when button clicked. Event contains button text |
hover | boolean | Triggered when pointer over button. True when over, false when not |
<flat-ui-material-button [text]="'more_horiz'" [selectable]="selectable"
(pressed)="morepressed()">
</flat-ui-material-button>