How to

23 Feb 2016 / 1 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");