Skip to content
On this page

NcActionRadio

Props

Prop nameDescriptionTypeValuesDefault
idid attribute of the radio elementstring-() => 'action-' + GenRandomId()
checkedchecked state of the the radio elementboolean-false
nameDefine if this radio is part of a set.
Checking the radio will disable all the
others with the same name.
string-
valuevalue of the radio inputstring|number-''
disableddisabled state of the radio elementboolean-false

Events

Event namePropertiesDescription
update:checkedEmitted when the radio state is changed
changeEmitted when the radio state is changed

Slots

NameDescriptionBindings
default

This component is made to be used inside of the NcActions component slots. Usually, you will provide a name prop to bind the radio together. So that only one of each name set can be selected at the same time.

vue
<NcActions>
		<NcActionRadio @change="alert('(un)checked !')" name="uniqueId">First choice</NcActionRadio>
		<NcActionRadio value="second" name="uniqueId" @change="alert('(un)checked !')">Second choice</NcActionRadio>
		<NcActionRadio :checked="true" name="uniqueId" @change="alert('(un)checked !')">Third choice (checked)</NcActionRadio>
		<NcActionRadio :disabled="true" name="uniqueId" @change="alert('(un)checked !')">Second choice (disabled)</NcActionRadio>
	</NcActions>