Skip to content

editorGlobalsIUserInputHandler

Interface: IUserInputHandler

Hierarchy

  • IUserInputHandler

Index

Methods

Methods

getEndOfSelection

getEndOfSelection(text: string): number

Defined in src/renderContext/hints/UserInputHint.ts:15

this can be used to exclude the unit from the preselected text, so that the user only overwrites the value

Parameters:

Name Type
text string

Returns: number

index of the first character that doesn't get selected when the UserInputHint gets the focus


getValuesToEmitOnExternalChange

getValuesToEmitOnExternalChange(currentText: string, newText: string): any[]

Defined in src/renderContext/hints/UserInputHint.ts:22

this can be used to specify the information that is attached to the onExternalChange event after the user input

Parameters:

Name Type Description
currentText string text before the user input
newText string text after the user input

Returns: any[]