Skip to content

Commit 70734d7

Browse files
committed
docs(api): nodeActions
1 parent 579c45f commit 70734d7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/docs/src/plugin/api-reference.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ The options are:
254254
- `icon`: material icon identifier
255255
- `tooltip`: button tooltip
256256
- `action`: function to be executed
257+
- `nodeActions`: an array of buttons to add to the selected node pane
258+
- `icon`: material icon identifier
259+
- `tooltip`: button tooltip
260+
- `action`: function to be executed
257261

258262
Example:
259263

@@ -271,6 +275,13 @@ api.addInspector({
271275
tooltip: 'Test custom action',
272276
action: () => console.log('Meow! 🐱')
273277
}
278+
],
279+
nodeActions: [
280+
{
281+
icon: 'star',
282+
tooltip: 'Test node custom action',
283+
action: (nodeId) => console.log('Node action:', nodeId)
284+
}
274285
]
275286
})
276287
```

0 commit comments

Comments
 (0)