Skip to content

AB Data Grid

Public tabular data grid for listing, sorting, filtering, and row selection. Wraps an internal grid implementation; always use ab-data-grid in generated UI, never the impl component or data-grid-implementation variant.

HTML tag: c-eb5d38cc487674b86906485157ec4ba6f

  • tabular data with sortable columns
  • pick one or many rows from a table
  • backend-driven data table (not tree/list)
PropTypeDefaultDescription
itemsArray
columnsArray
data_source__thing_idString
show_toolbarBoolean
multipleBoolean
labelString
appearanceString
toneString
sizeString
densityString
data_source_input_paramsObject[object Object]
suppress_context_menuBoolean
context_menu_custom_callbackObject
  • Define columns in property/entity shape (property_id, property_display_name, …) — the wrapper maps them to the internal grid.
  • Use .items for static row data OR data_source__thing_id (+ data_source_input_params) for backend-loaded rows, not both patterns without intent.
  • Set .multiple for multi-select; single-select is the default.
  • Call reload() on the ab-data-grid instance to refresh backend-backed data.
EventDetail
item-pickedvalue
data-loadedvalue
selected-items-changedvalue
SignatureDescription
reload()

Do not instantiate impl/custom-element tags for end-user tables. Do not use impl column shape (column_id, header, sorter) unless intentionally bypassing the property_id mapper.