Select - IRobot1/ng3-vr-examples GitHub Wiki
Current selection from drop-down list.

Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| text | string | blank | Text value |
| overflow | number | 24 | Number of characters to display before text is truncated |
| placeholder | text | undefined | Optional text to show when text is blank |
| width | number | 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 |
| backgroundmaterial | Material | Theme button material (color #505050) | Background material. Set to override with custom material |
| disabledmaterial | Material | Theme disabled material (color #666666) | Disabled material. Set to override with custom material |
| outlinematerial | LineBasicMaterial | Theme outline material (color white) | Outline material. Set to override with custom material |
| labelmaterial | Material | Theme label material (color white) | Checkbox material. Set to override with custom material |
| selectmaterial | Material | Theme select material (color white) | Select icon material. Set to override with custom material |
| selectable | InteractiveObjects | undefined | Add to list of objects ray caster can test for overlap |
| geometry | BufferGeoemtry | Rounded rectangle shape | Override to provide your own geometry |
Outputs
| Name | Type | Description |
|---|---|---|
| change | number | Triggered when text changed. Event contains new text |
| openinput | Object3D | Triggered when interaction requested. Event contains mesh showing text |
Examples
<flat-ui-select #list [text]="listvalue" [width]="0.8" [selectable]="selectable" [enabled]="item.enabled"
(change)="listvalue=$event" (openinput)="input.openlist($event, list, item._min, listvalue)">
</flat-ui-select>