Module Builder Actions Customization
Hi
Using module builder we have created a module to add events . In this module we need to customize the actions menu options. Please check the attached image for more details and help us on this.
Thanks,
Karnan
Hello Karnan,
There is example of such functionality to Extending the built-in content modules in this blog post. You could check there the implementation.
Regards,
Svetoslav Manchev
Telerik
Hi Svetoslav,
Thanks a lot , could you please suggest us how to extend Module builder's Actions and not in-build modules.
We have created a sample module called hostel using module builder and doesn't have any idea which class to be extended.
Also we have checked the advanced settings and we haven't find any "ViewModel" class.
Please check the image attached and help us on this.
Thanks,
Karnan
Hi Karnan,
What is the scenario you have, what you need to do by extending the menu?
You could try that easy approach by using jQuery to add new menu Item in the Actions menu. For example:
- Go to Administrations > Backend pages, than open in Pages:
- Sitefinity > Administration > Module Builder > Module Builder
- Add a JavaScript widget and get all the Action menus for the available modules:
var
menus = $(
'ul.k-group'
)
menus.append(
"<li class='k-item k-state-default k-last myclass' role='menu' style='padding-left:20px'><a href='#' id='myitem'>Test Item</a></li>"
)