Skip to content

co-ref-field

This content is not available in your language yet.

Ver código
<co-ref-field label="Ejemplo"></co-ref-field>

Props

PropAtributoTipoDefaultDescripción
clearableclearablebooleantrue
createLabelcreate-labelstring | undefinedIf set, shows a "Create" button in the panel footer.
disableddisabledbooleanfalse
emptyMessageempty-messagestring'No results found'
footerPrimaryLabelfooter-primary-labelstring'Ok'Label for the primary footer button.
footerSecondaryLabelfooter-secondary-labelstring'New'Label for the secondary footer button.
helperTexthelper-textstring | undefined
iconLefticon-leftstring | undefined
labellabelstring | undefined
loadingloadingbooleanfalseWhether the host is fetching data.
maxChipsmax-chipsnumber3Max chips visible in multiple mode before "+N" badge.
multiplemultiplebooleanfalse
optionsoptionsstring'[]'JSON array of options to display: RefFieldOption[]
placeholderplaceholderstring'Select…'
searchDebouncesearch-debouncenumber350
searchPlaceholdersearch-placeholderstring'Search…'
searchablesearchablebooleantrue
secondaryLabelsecondary-labelstring | undefined
selectedDisplayselected-displaystring'[]'JSON array of display items for selected values: RefFieldDisplayItem[]
showFootershow-footerbooleanfalseShow footer buttons (same pattern as co-combobox).
statusstatus"default" | "error" | "success" | "warning"'default'
totaltotalnumber0Total count of matching records from the API.
valuevaluestring''Selected value: single ID string or JSON array of IDs.

Eventos

EventoDetailBubblesCancelableDescripción
coChange{ value: string | string[]; item: RefFieldOption; }
coClearvoid
coClosevoid
coCreatestring
coFooterPrimaryvoid
coFooterSecondaryvoid
coLoadMorevoid
coOpenvoid
coRemovestring
coSearchstring

Slots

Este componente no expone slots.

CSS Parts

Este componente no expone CSS parts.

CSS Custom Properties

Este componente no expone CSS custom properties.