Ir al contenido

co-column-picker

Campo desplegable para elegir columnas a partir de rutas anidadas (p. ej. company.name). Presenta las opciones como un árbol con búsqueda, selección múltiple y chips de lo seleccionado. Las rutas se pasan como JSON en options y la selección en value.

Ver código
<co-column-picker label="Columnas" placeholder="Buscar columnas…" options='["_id","firstName","lastName","email","company.name","company.industry"]' value='["_id","firstName","email"]'></co-column-picker>

Props

PropAtributoTipoDefaultDescripción
clearTextclear-textstring'Clear'
clearableclearablebooleantrue
collapseTextcollapse-textstring'Collapse'
disableddisabledbooleanfalse
emptyTextempty-textstring'No results found'
expandTextexpand-textstring'Expand'
helperTexthelper-textstring | undefined
labellabelstring | undefined
maxHeightmax-heightnumber220
multiplemultiplebooleantrue
optionsoptionsColumnOption[] | string | string[]'[]'
placeholderplaceholderstring'Select…'
secondaryLabelsecondary-labelstring | undefined
sectionssectionsColumnSection[] | string'[]'
selectAllTextselect-all-textstring'Select all'
selectedTextselected-textstring'selected'
showSearchshow-searchbooleantrue
showToolbarshow-toolbarbooleantrue
statusstatus"default" | "error" | "info" | "success" | "warning"'default'
valuevaluestring | string[]'[]'

Eventos

EventoDetailBubblesCancelableDescripción
coChangestring[]
coClearvoid
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.