Template for ContextMenu AngularJs

2 posts, 1 answers
  1. Jakub
    Jakub avatar
    24 posts
    Member since:
    Jun 2015

    Posted 02 Jun Link to this post

    Hello,

    Is it possible to have a customize template of subMenu in ContextMenu using AngularJs?

  2. Answer
    Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    114 posts

    Posted 06 Jun Link to this post

    Hello Jakub,

    The Kendo UI Menu and ContextMenu can accommodate custom content if it is defined as a sub-group, as shown in the following example:

    http://demos.telerik.com/kendo-ui/menu/index

    (check the "Stores" item).

    I am afraid there is no built-in way to define templates.

    Another good resource is the below AngularJS demo with the Kendo UI ContextMenu:

    http://demos.telerik.com/kendo-ui/menu/context-menu-angular

    There is a way of using the DataSource to achieve custom appearance per item with CSS classes, that might be suitable in your case:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/contextmenu#configuration-dataSource

    Let me know if you need more help with the Kendo UI ContextMenu.

    Kind Regards,

    Alex

    Telerik

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