Skip to content
Star

PxGridSelect

A complex selector that combines a searchable dropdown with a data grid (table) for selected items. Useful for scenarios where users need to select multiple items and see their details (like name, color, and custom fields) in a structured format before saving. Built natively using PxSelect.

Basic Usage

Basic Usage

Selected Items

Choose item...
No items selected

Schema-Driven Usage (Backend Field)

When using PxSchemaForm, you can pass a FormSchemaField directly using the field prop. The component will automatically extract options, label_field, value_field, and handle pagination via infinite scroll if configured.

vue
<PxGridSelect
  v-model:selectedItems="selected"
  :field="mySchemaField"
  @search="handleSearch"
  @scroll-bottom="loadMore"
/>

API Reference

PropTypeDefaultDescription
options
SelectableItem[] | any[]() => []
selectedItems
SelectableItem[]() => []
title
string""
isRequired
booleanfalse
placeholder
string"Choose item..."
labelField
TSTypeOperator"name"
valueField
string"id"
field
FormSchemaFieldundefined
showColorPicker
booleanfalse
colorField
string"color"
columns
string[]() => []
additionalFields
AdditionalField[]() => []
disabled
booleanfalse
selectWidth
string"w-[400px]"
maxHeight
stringundefined
showCustomOptionTemplate
booleanfalse
showSelected
booleantrue
loading
booleanfalse
showButtonDelete
booleantrue
hideLabelColumn
booleanfalse
isInfinity
booleanfalse
loadMoreScroll
TSFunctionTypeundefined
hasMore
booleanfalse
loadingScroll
booleanfalse
searchFunction
TSFunctionTypeundefined
nonRemovableField
stringundefined
nonRemovableValue
string | number | nullundefined
showAvatar
booleanfalse

Built with VitePress