-
Notifications
You must be signed in to change notification settings - Fork 4
Input Text
anidivr edited this page Oct 30, 2022
·
2 revisions
Show text value. Interact to open keyboard to modify value.
Name | Type | Default | Description |
---|---|---|---|
text | string | blank | Text value |
overflow | number | 6 | Number of characters to display before text is scrolled |
password | boolean | false | When true, each character is displayed with * |
enabled | boolean | true | When true, button can be pressed. When false, press and hover are disabled |
placeholder | text | undefined | Optional text to show when text is blank |
width | number | 0.5 | Width of button in meters |
height | number | 0.1 | Height of button in meters |
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 |
textmaterial | Material | Theme String material (color lime) | String 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 |
Name | Type | Description |
---|---|---|
change | number | Triggered when text changed. Event contains new text |
openinput | Object3D | Triggered when interaction requested. Event contains mesh showing text |
<flat-ui-input-text #keyboard [text]="textvalue" [overflow]="10" [selectable]="selectable" [enabled]="item.enabled"
(change)="textvalue=$event" (openinput)="input.openkeyboard($event, keyboard, textvalue)">
</flat-ui-input-text>