Radioknapp

Komponent
FRadioGroup , FRadioField
Status
Deprekerad
Innehåll

Komponenterna FRadioGroup och FRadioGroupField är deprekerade, se migreringsguide.

API

FRadioGroup

Props
NameDescriptionTypeRequiredDefault

id

The id for the fieldset id attribute.
If the prop is not set the id will be generated.

string

false

() => ElementIdService.generateElementId()

name

The name of the radio group.
The radio group fields in the group will use the same name.

string

true

isHorizontal

If radio buttons should be aligned horizontally.
If the prop is not set the radio buttons will be aligned vertically.
Default: false

boolean

false

Slots
NameDescriptionBindings

label

Slot for label content. This slot is required.

tooltip

Slot for tooltip.

description

Optional slot for description. See FLabel for details.

descriptionClass
discreteDescriptionClass

error-message

Slot for displaying single or several error messages.

default

indentClass

FRadioGroupField

Props
NameDescriptionTypeRequiredDefault

disabled

Set to true, empty string "" or string "disabled" to disable this input field.

boolean

false

false

id

The id for the input id attribute.
The id for the label for attribute.
If the prop is not set a random value will be generated.

string

false

() => ElementIdService.generateElementId()

v-model

The value for the input checked attribute.

anyType

false

value

The value for the input.

anyType

true

Events
NameDescriptionProperties

change

Vue2 v-model event.

<anonymous>: anyType

update:modelValue

V-model event.

<anonymous>: anyType

Slots
NameDescriptionBindings

default

Slot for label content.

details

Slot for details, should only contain short text

height

Esc för att stänga Pil upp/ner för att navigera Enter för att välja