Skip to content

Commit 6db1dc2

Browse files
feat: line-item table cells for people, multi-select, tags, check and rating (objectstack-ai#36043) (objectstack-ai#36392)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ Fixes objectstack-ai#36043 repo:objectstack#7 · zhuangjianguo · session_01QsR2jTbWpneBrqq7SJvrNt Clause-②: yes (widening) Metadata-protocol: semantic Skills-docs: none — no skill names the inline grid column `type` values or keys (`git grep` of `skills/` for `inlineColumns` and the column type list: one passing mention in `objectstack-data/rules/relationships.md`, which lists no types) ## 维护者速读 - 表单里的明细表(主从表单的行项目表格)中,人员格子可以直接搜索选人,多选格子可以选多个选项,标签格子可以加标签,勾选格子是复选框,评分格子是星星;以前这些都是普通文本框,人员要手填用户编号,多选只能填一个值。 - 属于列表页重做专题的单元格编辑那一组,替在主从表单里录入明细行的用户解决「人员、多选填不进去」的问题。 - 已有表单的明细表会直接变样:布尔字段从「是/否」下拉变成复选框,评分字段从数字框变成星星;作者在列上明确写了类型的不受影响;出错时最坏是这几类格子不好用,已存的数据不受影响,可直接撤回。 - 无 ## What changes The card's words map onto the enum by the spec's existing rule that every column type is spelled as its namesake field type (the `inline-grid-column-carriers` probe and the `field.json` liveness note rely on it): people = `user`, multi-select = `multiselect`, tags = `tags`, check = `boolean`, rating = `rating`. **Spec (`packages/spec/src/data/field.zod.ts`).** `InlineGridColumnSchema.type` gains `user`, `multiselect`, `tags`, `boolean` and `rating` (nine → fourteen). The column gains one optional key, `max`: the star count of a `rating` cell (default 5), because a column carries no field definition and a `max: 10` rating would otherwise draw five stars. `options` and `multiple` describe what the new cells read from them. `inline-grid-columns.ts` (`deriveInlineGridColumns`' cell-type mirror) maps the same way, and each new cell type keeps the fill priority its field types had before, so which derived columns are visible by default does not change (the existing budget pins stay green unchanged). Liveness ledger: the `type` note lists fourteen types, and a `max` child row. Regenerated: reference docs, `authorable-surface/data.json` (one new key), liveness state counts. **Derivation (`ui/packages/plugin-form/src/deriveMasterDetail.ts`).** `fieldTypeToColumnType` maps `user` → `user`, `multiselect` / `checkboxes` → `multiselect`, `tags` → `tags`, `boolean` / `toggle` → `boolean`, `rating` → `rating`. A derived or hydrated column carries `multiple` from a multi-person field, `max` from a rating field, and the child's options on `multiselect` columns. A `tags` column takes no options: its cell holds free-form tags and reads no option list. A `boolean` column keeps the two options it carried as a select (`'true'` / `'false'`, labelled with the session's words through `booleanLabel`): they are the words its read-only and list-mode cells read as, so `booleanLabel` stays live. A column that declares its `type` is left alone, as before. **Cells (`ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx`, `gridCellPanels.tsx`).** The cells reuse the main list's in-cell faces rather than forking them: - `GridPanelCell` (new, beside S5's `GridSelectCell`) is a panel shell under the cell that hosts a widget's own `inCell` face over a draft: a click outside or Tab writes the draft, Esc writes nothing, and a face that ends on one pick calls `commit`. The cell keeps drawing its value while the panel is open. - `multiselect` hosts `MultiSelectField inCell`, `tags` hosts `TagsField inCell`, and `user` hosts `UserField inCell` (the main list's person picker: searchable list, recents, Clear; a single pick writes and closes). - `boolean` is the `Checkbox` primitive (click / Space), writing `true` / `false`. - `rating` draws `RatingField inCell` (a click on a star sets it); a digit key on the cell sets that many stars, 0 clears, a digit above `max` does nothing. - Read-only table and list mode: people by name (`UserField readonly`), a rating as its stars, a multi-select's option labels, a check cell as its option word (else the session's yes/no word). - A required cell holding an empty list (multi-select, tags, several people) reads invalid, as an empty scalar does. - A multi-select, tags or several-people cell that is emptied writes `null`, not `[]`: the save path counts only `null` / `''` as blank (`isBlankRow`), and a cleared multi-value field stores `null` elsewhere too. An emptied cell reads `—`. Item 2 of the card (interim read-only columns) is not built: the seat reads it as superseded once item 1 ships, and this PR ships item 1. **Visible change on existing master-detail forms** (named in the changeset): a derived `boolean` / `toggle` column is a checkbox instead of the yes/no select and writes booleans instead of the strings `'true'` / `'false'` (the server's write normalisation reads both the same); a derived `rating` column is stars instead of a number box; `user`, `multiselect`, `checkboxes` and `tags` columns are no longer plain text boxes. ## Tests - `ui/packages/fields/src/widgets/GridField.test.tsx`, new top-level `describe` "the cells that edit as in the main list": multi-select (labels, several picks staged then written on leaving, Esc writes nothing, empty list reads invalid when required), tags (a new tag added from the list, Tab writes and moves to the next cell), check (checkbox over `true` and `'false'`, click writes a boolean, read-only reads the option word), rating (five stars by default, a click sets, digit keys set and 0 clears, a digit above the stars sets nothing, `max: 10` draws ten), people (the person picker opens under the cell; its Clear writes and closes). An emptied multi-select and an emptied tags cell each write `null` (both pins go red with the fix taken out), and the emptied tags cell reads `—`. - `ui/packages/plugin-form/src/deriveMasterDetail.test.ts`: the five mappings with their neighbours as controls; a new `describe` pinning the extras on both the derive and the hydrate path (`multiple`, options on a multi-select and none on a tags column, the check column's two words, `max` from the field and none when the field declares none), and that an authored column, a `type: 'select'` over a boolean field included, keeps its type and extras. - `deriveMasterDetail.booleanOptions-12924.test.tsx`: the derived boolean column is now `type: 'boolean'` with the same two session-language options; the editable grid pins read checkbox states instead of picker text; the language-switch pin now re-labels the read-only table (the editable check cell shows no word). - `MasterDetailForm.lateCatalogue-12924.test.tsx`: the late-catalogue re-label is read where the grid still draws a boolean's word, a second detail in `inlineMode: 'form'`; the editable `Lines` detail keeps the unsaved edit and its checkboxes through the catalogue landing. - `deriveMasterDetail.inlineGridColumns-11345.test.ts`: the "output unchanged" corpus moves its one derived boolean column (`gift`) from `select` to `boolean`, marked where it sits; nothing else in the corpus moves. ## Deviations Four files outside the claim's surface, each a direct consequence of the widening. Seat 7 counts them inside the card. - `packages/metadata-core/src/object-schema-fls-references.ts`: `INLINE_COLUMN_POSITIONS` classifies the new `max` key as `keep` (a number, never a field name). `object-schema-fls-references.test.ts` refuses an unclassified `InlineGridColumnSchema` key, so it was red in Test Core 3/10 at `10767ef3`. - `ui/packages/types/src/__tests__/strict-face-read-keys-11070.test.ts`: the refused-column-type row used `boolean`, which is now a cell type, so it moves to `toggle`, which is still refused. It was red in Test UI 12/16 at `10767ef3`. - `ui/packages/types/src/form.ts`: a docblock no longer counts "nine" cell controls. - `content/docs/data-modeling/field-types.mdx`: the inline grid bullets list the fourteen cell types and the checkbox booleans, and add the people, multi-select, tags and rating cells. The changeset adds `'@objectstack/metadata-core': patch` and `'@object-ui/types': patch` for the first two packages. ## Acceptance notes - A click outside a multi-select / tags / people panel writes through the popover's own dismiss (`onOpenChange`). The jsdom pins leave the panel through Tab, because that harness's pointer events do not reach the dismiss. The click outside is measured live below. ## Live click-through Showcase app (`objectstack dev --seed-admin`, fresh database) plus the Console from source (Vite), Chromium through Playwright. To host the three cells, the run added, without committing, `inlineEdit: 'grid'` and `inlineColumns` (`name`, `f_multiselect`, `f_tags`, `f_users`) to `showcase_field_zoo.f_master_detail`, and a `fieldGroups` entry placing that child on `showcase_project`. The edits were reverted afterwards. Project "Website Relaunch", Edit, row 0 of the zoo grid. "Outside" is a click on the dialog's "Edit Project" heading. | Step | Multi-select | Tags | People (multiple) | | --- | --- | --- | --- | | Stored before | `["red","green"]` | `["alpha","beta"]` | `null` | | Pick | Blue | type `gamma`, Enter | Dev Admin | | Panels open after the click outside | 0 | 0 | 0 | | Cell after the click outside | Red, Green, Blue | alpha, beta, gamma | Dev Admin | | Stored after Update | `["red","green","blue"]` | `["alpha","beta","gamma"]` | `["<Dev Admin's user id>"]` | | Cell after a page reload and Edit again | Red, Green, Blue | alpha, beta, gamma | Dev Admin | | Emptied, click outside, Update: cell / stored | — / `null` | — / `null` | not run | The run found one defect, fixed in `2197dbdd`: an emptied tags cell drew nothing instead of `—`. The display helper now reads an empty list as empty for every type. It is pinned in `GridField.test.tsx`, and the final row above was read with the fix served. - `rating` cells keep `RatingField`'s one button per star, so Tab visits each star; the arrows and digit keys work from any of them. ## Verification Final head `6185caed`. It adds three commits to `f73a4351`: - `6e74cfe0`: the review rework. Metadata-protocol is `semantic`; a `tags` column takes no options; an emptied multi-value cell writes `null`; the stale "twenty keys" and liveness prose is fixed. - `2197dbdd`: the emptied tags cell reads `—`, found by the live run. - A merge of `origin/main` at `07b17542` (objectstack-ai#36523, objectstack-ai#36478, objectstack-ai#36522, objectstack-ai#36514, objectstack-ai#36508), and `6185caed`, which regenerates `content/docs/references/ui/component.mdx` from the merged tree. The merge had taken that page's `mobileMaxVisible` line from one side. Checks at the final head: - `dispatch-gates --ran` at `6185caed`: 120 derived families accounted for, 120 run, 0 NOT MEASURED, every one exit 0. That includes `check:generated` and `check:liveness` after a spec rebuild, and `pnpm --dir ui exec vitest run scripts/` run alone under the verify lock. - `ui/packages/fields/` + `ui/packages/plugin-form/` (whole packages) at `6185caed`: 567 files, 7,629 tests passed, 8 skipped. - The new pins were ablated: both "emptied, it writes null" pins and the tags `—` pin go red with their fix taken out. - `overlap-check` at `6185caed`, verdict read before the push. It merges cleanly with `origin/main` `a10987ae` and with 6 of 7 open PR heads. objectstack-ai#36543 conflicts only in `packages/spec/liveness/state-counts/field.md`, a generated count: whichever lands second regenerates it with `gen:liveness-counts`, not a hand merge. - Earlier heads: at `10767ef3`, `pnpm --filter @objectstack/spec test` (871 files, 27,909 tests) and `test:repo` (92 files, 1,562 tests) passed. CI was green at `f73a4351`. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jTbWpneBrqq7SJvrNt)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTbWpneBrqq7SJvrNt <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jTbWpneBrqq7SJvrNt --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent f3a8a13 commit 6db1dc2

26 files changed

Lines changed: 834 additions & 102 deletions
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@object-ui/fields': minor
4+
'@object-ui/plugin-form': minor
5+
'@objectstack/metadata-core': patch
6+
'@object-ui/types': patch
7+
---
8+
9+
feat: the form's line-item table edits people, multi-select, tags, check and rating cells the way the main list does
10+
11+
Clause-②: yes (widening)
12+
Metadata-protocol: semantic
13+
14+
`InlineGridColumnSchema.type` (a relationship field's `inlineColumns`, a form view's `subforms[].columns`, and the page blocks that carry the same column) accepts five more cell types, each spelled as its namesake field type: `user` (people), `multiselect`, `tags`, `boolean` (check) and `rating`. The column also takes an optional `max`, the star count of a `rating` cell (default 5).
15+
16+
In the line-item table:
17+
18+
- A `user` cell opens the main list's person picker under the cell: a searchable list with recent people and Clear; a pick writes and closes. `multiple` holds several people.
19+
- A `multiselect` cell holds several of its options and a `tags` cell holds free-form tags. Each opens its searchable list under the cell; a click outside or Tab writes what was picked, Esc writes nothing. A list emptied in the cell writes `null`, as a cleared multi-value field stores, so a line whose only value was removed is still a blank line. A `tags` cell takes no `options`.
20+
- A `boolean` cell is a checkbox: a click or Space toggles it and writes `true` / `false`.
21+
- A `rating` cell draws its stars; a click on a star, or a digit key on the cell, sets it, and 0 clears it.
22+
- Read-only and list-mode cells show people by name, a rating as its stars, a multi-select's option labels, and a check cell as the session's yes/no word.
23+
24+
Visible change on existing forms: a column the table derives from a child field (no `type` written) now follows that field. A `boolean` / `toggle` field becomes a checkbox instead of the yes/no select, and it writes `true` / `false` instead of the strings `'true'` / `'false'` (the server reads both the same). A `rating` field becomes stars instead of a number box. `user`, `multiselect`, `checkboxes` and `tags` fields get their own cells instead of a plain text box that took a typed user id or a single option. A column that writes its `type` is unchanged, a `type: 'select'` column over a boolean field included. Which derived columns are visible by default is unchanged.
25+
26+
The field-level security scrubber classifies the column's new `max` key as kept (a number, never a field name).

‎content/docs/data-modeling/field-types.mdx‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,16 +599,22 @@ the parent's form edits the children as rows of a table:
599599

600600
- **Columns.** Without `inlineColumns` the columns are derived from the child object. An
601601
explicit column (`InlineGridColumn`) names the child field in `name` and may set `label`,
602-
`width` (pixels), `required` and `type`. A column's `type` is one of nine cell controls:
603-
`text`, `number`, `currency`, `date`, `datetime`, `time`, `select`, `lookup` and `file`.
604-
Declaring `type` opts the column out of derivation, so supply what the control needs
605-
(`options` for a select, `reference` and `displayField` for a lookup).
602+
`width` (pixels), `required` and `type`. A column's `type` is one of fourteen cell controls:
603+
`text`, `number`, `currency`, `date`, `datetime`, `time`, `select`, `lookup`, `file`, `user`,
604+
`multiselect`, `tags`, `boolean` and `rating`. Declaring `type` opts the column out of
605+
derivation, so supply what the control needs (`options` for a select or multi-select,
606+
`reference` and `displayField` for a lookup, `max` for a rating).
606607
- **File cells.** A `file` column is an upload control in the cell, with removable chips and
607608
thumbnails for images; `accept` and `multiple` restrict it. Derived columns map `file`,
608609
`image` and `avatar` child fields to `file` cells, an image field accepting `image/*`. Shown as
609610
text, a file cell reads the file's name, or a count when it holds several.
610-
- **Booleans.** A derived `boolean` or `toggle` child field becomes a `select` cell storing
611-
`'true'` / `'false'`, labelled in the session language.
611+
- **Booleans.** A derived `boolean` or `toggle` child field becomes a checkbox cell storing
612+
`true` / `false`; read-only, it shows the session language's yes / no word. A column authored
613+
as `type: 'select'` over a boolean field keeps the select.
614+
- **People, multi-select, tags and rating.** A derived `user` field becomes the person picker
615+
(several people when the field is `multiple`), `multiselect` and `checkboxes` fields a list
616+
holding several options, `tags` a free-form tag list, and `rating` a row of stars (`max`
617+
from the field, default 5). Each edits as the same cell does in the list view.
612618
- **Currency.** A `currency` cell shows the resolved currency's symbol, and decimals of that
613619
currency's CLDR fraction digits; `prefix` replaces the symbol only.
614620
- **Order.** When the columns are derived and the child object has a field named `position`, `sort_order`, `sequence`,

‎content/docs/references/data/field.mdx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const result = CurrencyConfigSchema.parse(data);
8383
| **deleteBehavior** | `Enum<'set_null' \| 'cascade' \| 'restrict'>` | optional (default: `"set_null"`) | What happens if referenced record is deleted |
8484
| **inlineEdit** | `boolean \| Enum<'grid' \| 'form'>` | optional | How the parent's form edits these child records inline (atomic master-detail) when a field group of the parent names this child (fieldGroups[].relatedList); a child no group names is not inlined, whatever this says. true or absent = auto-pick grid/form by child shape; 'grid' = editable line-item grid; 'form' = list + per-row full form. |
8585
| **inlineTitle** | `string` | optional | Title for the inline master-detail grid |
86-
| **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>; width?: number; … }[]` | optional | Explicit columns for the inline grid (derived from the child object when omitted). Each entry is a strict, name-keyed column (`{ name, label?, type?, … }` — objectui GridColumn); identity-only entries (`{ name }`) hydrate everything else from the child object's fields. Unknown keys and the retired `field` spelling are refused at parse. |
86+
| **inlineColumns** | `{ name: string; label?: string; type?: Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| …>; width?: number; … }[]` | optional | Explicit columns for the inline grid (derived from the child object when omitted). Each entry is a strict, name-keyed column (`{ name, label?, type?, … }` — objectui GridColumn); identity-only entries (`{ name }`) hydrate everything else from the child object's fields. Unknown keys and the retired `field` spelling are refused at parse. |
8787
| **inlineAmountField** | `string` | optional | Numeric child field summed for the inline grid total |
8888
| **relatedList** | `boolean \| 'primary'` | optional | Show this child collection as a related list on the parent's detail page (read-side mirror of inlineEdit). true = an auxiliary panel on the record page; absent = an auxiliary panel, except that a master_detail field becomes a body table when a field group of the parent names it (fieldGroups[].relatedList); false = hidden: the child object is not shown on the parent record page; 'primary' = a body table: part of the record's main content, shown as a full-width table in the record's detail body. Write true on a master_detail field to keep it an auxiliary panel even from a field group. 'primary' places a list and does not order it: the parent object's relatedLists orders the full-width tables and the auxiliary panels. The page layout is defined by ADR-0085. A derived related list (relatedList: 'primary') inherits its row order from the child object's DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=`<field>` / sort=-`<field>`, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order. |
8989
| **relatedListTitle** | `string` | optional | Title for the detail-page related list |
@@ -220,16 +220,17 @@ const result = CurrencyConfigSchema.parse(data);
220220
| :--- | :--- | :--- | :--- |
221221
| **name** | `string` | ✅ | Child field this column shows — the key the grid reads and writes on each row object (objectui GridColumn.name). The retired `field` spelling is refused. |
222222
| **label** | `string` | optional | Column header; defaults to the child field's label via hydration. |
223-
| **type** | `Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>` | optional | Cell control, derived from the child field's type when omitted. Declaring it opts the column out of schema hydration — supply the extras (options / reference / …) yourself. |
223+
| **type** | `Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| …>` | optional | Cell control, derived from the child field's type when omitted: `user` is a person picker, `multiselect` a list holding several of the column's options, `tags` a list of free-form tags, `boolean` a checkbox and `rating` a row of stars. Declaring it opts the column out of schema hydration — supply the extras (options / reference / …) yourself. |
224224
| **width** | `number` | optional | Fixed column width in px; omitted columns use type-based role sizing (text flexes, numeric/date/select stay fixed). |
225225
| **required** | `boolean` | optional | Cell is flagged inline-invalid while empty. Computed columns are never required. |
226-
| **options** | `{ label: string; value: string }[]` | optional | Select-cell options for `type: 'select'`; derived from the child field's options when the column declares no `type`. |
226+
| **options** | `{ label: string; value: string }[]` | optional | Options of a `select` or `multiselect` cell, and the words a `boolean` cell reads as (values `true` / `false`); derived from the child field's options when the column declares no `type`. A `tags` cell reads none: it holds free-form tags. |
227227
| **prefix** | `string` | optional | Symbol shown in a `currency` cell in place of the resolved currency's own symbol. No default: when omitted, the cell shows the symbol of the currency it resolves. It replaces the symbol only — the amount's decimal places stay the currency's. |
228228
| **step** | `number` | optional | Input step for numeric cells. |
229229
| **reference** | `string` | optional | Referenced object for `type: 'lookup'` cells; derived from the child lookup field when the column declares no `type`. |
230230
| **displayField** | `string` | optional | Label field shown for a picked lookup record. |
231231
| **idField** | `string` | optional | Id field stored for a picked lookup record. |
232-
| **multiple** | `boolean` | optional | Multi-value column: multi-record lookup, or multi-file upload cell. |
232+
| **multiple** | `boolean` | optional | Multi-value column: multi-record lookup, several people in a `user` cell, or multi-file upload cell. |
233+
| **max** | `integer` | optional | Star count of a `rating` cell (default 5); derived from the child field's `max` when the column declares no `type`. |
233234
| **accept** | `string[]` | optional | Accepted MIME types / extensions for a `file` cell's picker (e.g. ['image/*', '.pdf']); omit to accept anything. |
234235
| **defaultHidden** | `boolean` | optional | Collapsed into the grid's column chooser by default (not dropped); required columns are never default-hidden. |
235236
| **computed** | `boolean` | optional | Read-only computed column, recomputed live from sibling cells via `expr` and written back into the row. |
@@ -417,16 +418,17 @@ Allowed Values: `phone`, `id_card`, `bank_account`, `email`, `name`
417418
| :--- | :--- | :--- | :--- |
418419
| **name** | `string` | ✅ | Child field this column shows — the key the grid reads and writes on each row object (objectui GridColumn.name). The retired `field` spelling is refused. |
419420
| **label** | `string` | optional | Column header; defaults to the child field's label via hydration. |
420-
| **type** | `Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file'>` | optional | Cell control, derived from the child field's type when omitted. Declaring it opts the column out of schema hydration — supply the extras (options / reference / …) yourself. |
421+
| **type** | `Enum<'text' \| 'number' \| 'currency' \| 'date' \| 'datetime' \| 'time' \| 'select' \| 'lookup' \| 'file' \| 'user' \| 'multiselect' \| 'tags' \| 'boolean' \| 'rating'>` | optional | Cell control, derived from the child field's type when omitted: `user` is a person picker, `multiselect` a list holding several of the column's options, `tags` a list of free-form tags, `boolean` a checkbox and `rating` a row of stars. Declaring it opts the column out of schema hydration — supply the extras (options / reference / …) yourself. |
421422
| **width** | `number` | optional | Fixed column width in px; omitted columns use type-based role sizing (text flexes, numeric/date/select stay fixed). |
422423
| **required** | `boolean` | optional | Cell is flagged inline-invalid while empty. Computed columns are never required. |
423-
| **options** | `{ label: string; value: string }[]` | optional | Select-cell options for `type: 'select'`; derived from the child field's options when the column declares no `type`. |
424+
| **options** | `{ label: string; value: string }[]` | optional | Options of a `select` or `multiselect` cell, and the words a `boolean` cell reads as (values `true` / `false`); derived from the child field's options when the column declares no `type`. A `tags` cell reads none: it holds free-form tags. |
424425
| **prefix** | `string` | optional | Symbol shown in a `currency` cell in place of the resolved currency's own symbol. No default: when omitted, the cell shows the symbol of the currency it resolves. It replaces the symbol only — the amount's decimal places stay the currency's. |
425426
| **step** | `number` | optional | Input step for numeric cells. |
426427
| **reference** | `string` | optional | Referenced object for `type: 'lookup'` cells; derived from the child lookup field when the column declares no `type`. |
427428
| **displayField** | `string` | optional | Label field shown for a picked lookup record. |
428429
| **idField** | `string` | optional | Id field stored for a picked lookup record. |
429-
| **multiple** | `boolean` | optional | Multi-value column: multi-record lookup, or multi-file upload cell. |
430+
| **multiple** | `boolean` | optional | Multi-value column: multi-record lookup, several people in a `user` cell, or multi-file upload cell. |
431+
| **max** | `integer` | optional | Star count of a `rating` cell (default 5); derived from the child field's `max` when the column declares no `type`. |
430432
| **accept** | `string[]` | optional | Accepted MIME types / extensions for a `file` cell's picker (e.g. ['image/*', '.pdf']); omit to accept anything. |
431433
| **defaultHidden** | `boolean` | optional | Collapsed into the grid's column chooser by default (not dropped); required columns are never default-hidden. |
432434
| **computed** | `boolean` | optional | Read-only computed column, recomputed live from sibling cells via `expr` and written back into the row. |

0 commit comments

Comments
 (0)