We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add icons/images beside the Scheduler context-menu items?

The following steps helps you to add image/icon to the Scheduler context-menu items.

  1. Create a Schedule sample with context-menu option by referring the following links.

Sample link: http://js.syncfusion.com/demos/web/#!/azure/schedule/contextmenu

UG link: http://help.syncfusion.com/js/schedule/context-menu

 

  1. Create the necessary style classes to be applied for the context-menu items.

 

  1. Add an additional field named sprite which holds the class name of the background image(s) and its properties within the contextMenuSettings property as shown below.

 

  1.  Before the context menu gets opened, beforeContextMenuOpen event will be raised. In that event, define the default field name of menu control, spriteCssClass additionally (default field of ejMenucontrol) which holds the sprite field name as shown below for the Scheduler context-menu items.

 

 

  1. Run the sample and right click the cell. Image/Icon will get added to the context-menu items as depicted in the below image,

 

 

Figure 1: Image/Icon added for context-menu items.

 

Sample link: http://jsplayground.syncfusion.com/tlo3u2ev

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6978 07/14/2016 07/14/2016 JavaScript ejSchedule
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon