Skip to content

Commit cc82e94

Browse files
committed
Add contextMenuPlugin.submenuTitle to docs and test.
I couldn't actually get the subtitles to appear (even for built-in) submenus, but I figured I'd add this to the docs anyways.
1 parent a8e3ae9 commit cc82e94

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/api.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ Constructs a new JSONEditor.
221221

222222
The callback function when the custom action is clicked. Called with the selected node.
223223

224+
- `{string} submenuTitle`
225+
226+
The submenu expander's title (tooltip) text, for example `A longer description of the submenu`.
227+
224228
- `{Object[]} submenu`
225229

226230
Submenu items of the same type as `contextMenuPlugins`.
@@ -249,6 +253,10 @@ Constructs a new JSONEditor.
249253

250254
The callback function when the custom action is clicked. Called with the selected nodes.
251255

256+
- `{string} submenuTitle`
257+
258+
The submenu expander's title (tooltip) text, for example `A longer description of the submenu`.
259+
252260
- `{Object[]} submenu`
253261

254262
Submenu items of the same type as `multiContextMenuPlugins`.

test/test_plugins.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
text: 'Submenu',
8686
title: 'Action with submenu',
8787
className: 'jsoneditor-action2',
88+
submenuTitle: 'A title for the submenu expand button',
8889
submenu: [
8990
{
9091
text: 'Submenu 1',

0 commit comments

Comments
 (0)