Record Versions
Version history grid for a record: bind thing_id + version_id, user picks another version row.
HTML tag: c-ed27eef4c79d847f4816c51e85dcdd49a
When to use
Section titled “When to use”- pick among saved versions of one record
- audit trail version switcher
- not a general purpose data grid
| Prop | Type | Default | Description |
|---|---|---|---|
thing_id | String | ||
version_id | String |
- Set .thing_id and current .version_id on host.
- Listen version-picked — detail is the row item; update version_id in parent when user switches.
- Specialized audit/history UI — not a general editable grid (ab-data-grid).
- Backend supplies version rows; component does not invent versions.
Events
Section titled “Events”| Event | Detail |
|---|---|
version-picked | item: Object |
What to avoid
Section titled “What to avoid”Do not use ab-data-grid for the built-in version picker UX. Do not use for unrelated tabular data without version semantics.
Example
Section titled “Example”<c-ed27eef4c79d847f4816c51e85dcdd49a .thing_id=${recordId} .version_id=${activeVersion} @version-picked=${onVersionPick}></c-ed27eef4c79d847f4816c51e85dcdd49a>