Material Button - IRobot1/ng3-vr-examples GitHub Wiki
Material Icon Button

See Material Icon
Inputs
| 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 |
Outputs
| 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 |
Examples
<flat-ui-material-button [text]="'more_horiz'" [selectable]="selectable"
(pressed)="morepressed()">
</flat-ui-material-button>