We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579c45f commit 70734d7Copy full SHA for 70734d7
packages/docs/src/plugin/api-reference.md
@@ -254,6 +254,10 @@ The options are:
254
- `icon`: material icon identifier
255
- `tooltip`: button tooltip
256
- `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
261
262
Example:
263
@@ -271,6 +275,13 @@ api.addInspector({
271
275
tooltip: 'Test custom action',
272
276
action: () => console.log('Meow! 🐱')
273
277
}
278
+ ],
279
+ nodeActions: [
280
+ {
281
+ icon: 'star',
282
+ tooltip: 'Test node custom action',
283
+ action: (nodeId) => console.log('Node action:', nodeId)
284
+ }
274
285
]
286
})
287
```
0 commit comments