Skip to main content

Radio Button

Radio buttons are normally presented in radio groups (a collection of radio buttons describing a set of related options). Only one radio button in a group can be selected at the same time.

Example

A8Studio

API Methods

setLabel

Sets the label of the field.

setLabel(label: string): void

setData

Sets the data in a particular array of objects.

setData(data: RadioButtonData[]): 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

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