Membuat Form di Ext JS

Selanjutnya Kita akan Muali Bermain dengan Code – Code ExtJS, kita akan mencoba membuat form seperti gambar dibawah : Selain Botton ada juga Cycle dan Split Ext.create('Ext.button.Cycle', { showText: true, prependText: 'View as ', renderTo: Ext.getBody(), menu: { id: 'view-type-menu', items: [{ text: 'text only', iconCls: 'view-text', checked: true },{ text: 'HTML', iconCls: 'view-html' }] }, changeHandler: function(cycleBtn, activeItem) { Ext.Msg.alert('Change View', activeItem.text); } }); Ext.create('Ext.button.Split', { renderTo: Ext.getBody(), text: 'Options', // handle a click on the button itself handler: function() { alert("The button was clicked"); }, menu: new Ext.menu.Menu({ items: [ // these will render as ...