Skip to content
On this page

NcActionCheckbox

Props

Prop nameDescriptionTypeValuesDefault
idid attribute of the checkbox elementstring-() => 'action-' + GenRandomId()
checkedchecked state of the the checkbox elementboolean-false
valuevalue of the checkbox inputstring|number-''
disableddisabled state of the checkbox elementboolean-false

Events

Event namePropertiesDescription
changeEmitted when the checkbox state is changed
checkEmitted when the checkbox is checked
uncheckEmitted when the checkbox is unchecked
update:checkedEmitted when the checkbox state is changed

Slots

NameDescriptionBindings
default

This component is made to be used inside of the NcActions component slots.

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