@praxisui/list 4.0.0-beta.0 → 5.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -273,13 +273,13 @@ Configure contextual item actions via `config.actions`:
273
273
  ```ts
274
274
  actions: [
275
275
  { id: 'edit', icon: 'edit', label: 'Edit' },
276
- { id: 'delete', icon: 'delete', color: 'warn', showIf: "${item.status} == 'active'" },
276
+ { id: 'delete', icon: 'delete', color: 'warn', showIf: { "==": [{ "var": "row.status" }, "active"] } },
277
277
  { id: 'details', kind: 'button', buttonVariant: 'raised', label: 'Details' },
278
278
  ]
279
279
  ```
280
280
 
281
281
  - `kind`: 'icon' (default) or 'button'.
282
- - `showIf`: simple equality check is supported. Syntax: `"${item.field} == 'value'"`. Left side must be an interpolation expression.
282
+ - `showIf`: use Json Logic. Example: `{ "==": [{ "var": "row.status" }, "active"] }`.
283
283
  - `emitPayload`: authoring field in the config/editor; current runtime `actionClick` emission does not change shape based on this field.
284
284
 
285
285
  ### Global actions (command)