Skip to content
On this page

NcActionInput

Props

Prop nameDescriptionTypeValuesDefault
idid attribute of the checkbox elementstring-() => 'action-' + GenRandomId()
iconIcon to show with the action, can be either a CSS class or an URLstring-''
typetype attribute of the input fieldstringdate, datetime-local, month, multiselect, number, password, search, tel, text, time, url, week, color, email'text'
idNativeDateTimePickerid attribute for the native date time pickerstring-'date-time-picker_id'
isNativePickerFlag to use a native date time pickerboolean-false
valuevalue attribute of the input fieldstring|date|number-''
disableddisabled state of the input fieldboolean-false
ariaLabelaria-label attribute of the input fieldstring-''

Events

Event namePropertiesDescription
inputEmitted on input events of the text field
changeEmitted on change of the input field
submitEmitted on submit of the input field
update:valueEmitted when the inputs value changes
! DatetimePicker only send the value

Slots

NameDescriptionBindings
iconManually provide icon

This component is made to be used inside of the NcActions component slots. All undocumented attributes will be bound to the input, the datepicker or the multiselect component, e.g. maxlength, not-before. For the multiselect component, all events will be passed through. Please see the multiselect component's documentation for more details and examples.

<NcActions>
	<NcActionInput icon="icon-edit" value="This is an input" />
	<NcActionInput icon="icon-edit">This is the placeholder</NcActionInput>
	<NcActionInput icon="icon-close" :disabled="true" value="This is a disabled input" />
	<NcActionInput icon="icon-edit" type="date">Please pick a date</NcActionInput>
	<NcActionInput icon="icon-edit" type="multiselect" :options="['Apple', 'Banana', 'Cherry']">Please pick a fruit</NcActionInput>
</NcActions>