@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 +2 -2
- package/fesm2022/praxisui-list.mjs +93 -109
- package/index.d.ts +20 -15
- package/package.json +2 -2
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: "
|
|
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`:
|
|
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)
|