Skip to content
On this page

NcActionInput

Props

Prop nameDescriptionTypeValuesDefault
idid attribute of the checkbox elementstring-() => 'action-' + GenRandomId()
inputIdid attribute of the text input elementstring-() => 'action-input-' + 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
labelThe visible input label for accessibility purposes.string-null
labelVisibleIf you want to hide the label just above the
input field, pass in false to this prop.
boolean-true
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.

loading...