How to

25 Nov 20161 minute to read

Get Ribbon object

After Ribbon initialization, Ribbon object is stored in a container element of Ribbon and it can be accessed for further processing.

  • JS
  • // "defaultRibbon" is Id of Ribbon control
         var ribbonObject = $("#defaultRibbon").ejRibbon("instance");
    
           [or]
    
         var ribbonObject = $("#defaultRibbon").data("ejRibbon");