Skip to main content

Number

A Number component where user can use up and down arrows to select a number.

Example

A8Studio

API Methods

setLabel

Sets the label of the text field.

setLabel(label: string): void

setPlaceholder

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

setPlaceholder(placeholder: string): void

setReadOnly

Sets the ReadOnly flag for this component.

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