Skip to content

Commit

Permalink
Add contextMenuPlugin.submenuTitle to docs and test.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dhughes-xumak committed Jul 18, 2017
1 parent a8e3ae9 commit cc82e94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api.md
Expand Up @@ -221,6 +221,10 @@ Constructs a new JSONEditor.

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

- `{string} submenuTitle`

The submenu expander's title (tooltip) text, for example `A longer description of the submenu`.

- `{Object[]} submenu`

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

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

- `{string} submenuTitle`

The submenu expander's title (tooltip) text, for example `A longer description of the submenu`.

- `{Object[]} submenu`

Submenu items of the same type as `multiContextMenuPlugins`.
Expand Down
1 change: 1 addition & 0 deletions test/test_plugins.html
Expand Up @@ -85,6 +85,7 @@
text: 'Submenu',
title: 'Action with submenu',
className: 'jsoneditor-action2',
submenuTitle: 'A title for the submenu expand button',
submenu: [
{
text: 'Submenu 1',
Expand Down

0 comments on commit cc82e94

Please sign in to comment.