-
Notifications
You must be signed in to change notification settings - Fork 4
Input Text Area
anidivr edited this page Jan 10, 2023
·
1 revision
Multiline text input with scrolling support
Name | Type | Default | Description |
---|---|---|---|
text | string | blank | Text value |
font | string | blank | Optional. Text font. For example, https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwK4vaqI.woff |
fontsize | number | 0.07 | Font size |
enabled | boolean | true | When true, text can be entered. When false, entry is disabled |
placeholder | text | undefined | Optional text to show when text is blank |
width | number | 0.5 | Width of text area in meters |
height | number | 0.17 | Height of text area 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 |
enter | void | Triggered when enter pressed on keyboard. |
openinput | Object3D | Triggered when interaction requested. Event contains mesh showing text |
<flat-ui-input-textarea #keyboard [text]="textvalue" [selectable]="selectable" [enabled]="item.enabled"
(change)="textvalue=$event" (enter)="enter()" (openinput)="input.openkeyboard($event, keyboard, textvalue)">
</flat-ui-input-textarea>