Skip to main content

Text Input

The Text Input component provides methods and properties to manipulate text boxes. It is derived from the base componenet.

setText()​

Sets the text of the text input.

setText(text: string): void;

getText()​

Gets the text of the text input.

getText(): string;

setFontSize()​

Sets the font size of the text input.

setFontSize(fontSize: number): void;

getFontSize()​

Gets the font size of the text input.

getFontSize(): number;

setFontColor()​

Sets the font color of the text input.

setFontColor(fontColor: string): void;

getFontColor()​

Gets the font color of the text input.

getFontColor(): string;

setFontStyles()​

Sets the font styles of the text input.

setFontStyles(fontStyle: Visu.EFontStyle): void;

setHAlignment()​

Sets the horizontal alignment of the text input.

setHAlignment(): void;

getHAlignment()​

Gets the horizontal alignment of the text input.

getHAlignment(): string;

setVAlignment()​

Sets the vertical alignment of the text input.

setVAlignment(vAlignment: Visu.EVAlignment): void;

getVAlignment()​

Gets the vertical alignment of the text input.

getVAlignment(): string;

setBorderWidth()​

Sets the border width of the text input.

setBorderWidth(borderWidth: number): void;

setBorderColor()​

Sets the border color of the text input.

setBorderColor(borderColor: string): void;

setBorderRadius()​

Sets the border radius of the text input.

setBorderRadius(borderRadius: number): void;

setPadding()​

Sets the padding of the text input.

setPadding(padding: number): void;

setTextOrientation()​

Sets the text orientation of the text input.

setTextOrientation(orientation: number): void;

getTextOrientation()​

Gets the text orientation of the text input.

getTextOrientation(): number;

clear()​

Clears the text input.

clear(): void;

Properties​

value​

Text input value.

value: string;

hasUserInput​

Indicates if the user has changed the input value.

hasUserInput: boolean;