Add a submenu to wjInput.MenuItem

Posted by: igelfenbeyn on 16 July 2020, 3:23 pm EST

  • Posted 16 July 2020, 3:23 pm EST

    Hello,

    i am using this example to add a context menu to my chart, but I also need to add a submenu and can’t find a way to do it.

    https://www.grapecity.com/wijmo/demos/Input/Menu/ContextMenus/react

    the code below doesnt work:

    <wjInput.MenuItem cmd=“cmdSave”>Export

    <wjInput.MenuItem cmd=“cmdSubmenu”>Sub Menu</wjInput.MenuItem>

    </wjInput.MenuItem>

    Thanks

  • Posted 17 July 2020, 12:34 am EST

    Hi Igor,

    We have replied to you query on the forum post below:

    https://www.grapecity.com/forums/wijmo/add-a-submenu-to-wjinputme

    For reference, we are copying the response here:

    We are sorry but currently sub menus are not supported. But, we have added a feature request to the developers with internal tracking id 446561. We will update you once we will hear from them.

    In the meantime, you can use the traditional way for creating a menu by providing and itemsSource with submenus and setting the subItemsPath property of the Menu class. Please refer to the sample for reference:

    https://stackblitz.com/edit/react-dbgzwn

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels