Supported Properties for Menu

2 posts, 0 answers
  1. Randy
    Randy avatar
    72 posts
    Member since:
    Jan 2009

    Posted 27 Aug 2015 Link to this post

    I have been looking at the example for creating a menu from a JSON object and haven't found a list of supported properties.

    They list several in the example, but is that a complete list? On the URL for example is there a way of having it open in a new window (target="_blank") vs. a redirect?

    I would also like to be able to assign a javascript function to a click even, and have seen on click used in different examples, but is it supported for JSON.

    Overall I have found a lot of examples and information of item manipulation, but very little on getting it to do what you want when you click it. I don't really want to have a nightmare of a switch statement in the on select event.




  2. Petyo
    Petyo avatar
    2437 posts

    Posted 31 Aug 2015 Link to this post

    Hello Randy,

    a complete list of the properties supported by the dataSource object is listed in the menu API reference. I am afraid, however, that they don't include per-item click callbacks. This is an useful concept, which will avoid the long switch/case code in a common callback. We have it in the newer toolbar widget, for example. I will log this for future consideration on our side. 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top