Skip to main content

Text

Alternatively referred to as a text field. It is a text box component in a form that allows a user to enter text.

Example

A8Studio

API Methods

setLabel

Sets the label of the Text.

setLabel(label: string): void

setPlaceholder

Sets the placeholder as a string that temporarily holds the place to the final data.

setPlaceholder(placeholder: string): void

setReadOnly

Sets the ReadOnly flag for this context.

setReadOnly(readOnly: boolean): void

setRequired

Sets a field to be required or not.

setRequired(required: boolean): void

setSize

Sets the size only using the parameters passed in.

setSize(size: "small" | "medium" | "large"): void

setValue

Sets the value of a field.

setValue(value: string): void

setVisibility

Sets if elements of the given category is visible in this view.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the hide condition

setVisibilityCondition(condition: string): void