How to

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");