title: ExtJS 5 - Dynamically add items to split button menu from store
body: <p>I want to associate a store to split button menu. I am using extjs version 5. I have searched on the web and even went through sencha documentation but I couldn't figure out a way to achieve this. </p>
  
  <p>Currently i'm holding the menu details in variable and assigning it to the splitbutton xtyoe menu property.I want to achieve the same using store, your help is much appreciated!</p>
  
  <p><strong>Program Code:-</strong></p>
  
  <pre><code>        var menuJSON = [{
              text:'Menu1',
              menu:[{text:'Submenu1'},{text:'Submenu2'}]
          },{
              text:'Menu2',
              menu:[{text:'Submenu1'},{text:'Submenu2'}]
          },{
              text:'Menu3',
              menu:[{text:'Submenu1'},{text:'Submenu2'}]
          },{
              text:'Menu4'
          },{
              text:'Menu5',
              menu:[{text:'Submenu1'},{text:'Submenu2'}]
          }];
          {
          region: 'south',
          fbar: [{
              xtype:'splitbutton',
              id: 'app-starterMenu',
              text:'Start',
              scale:'small',
              iconCls:'icon-start',
              menuAlign: 'bl-tl',
              menu: menuJSON
          }]
          }   
  </code></pre>
  
  <p>Thanks in advance!      </p>