extjs - how to add menu in a button -
extjs - how to add menu in a button -
i want have menu in button drop-down without key "text" in ext js 4. have array me required field shown in button. , associating array in menu alternative programatically. array not have "text" column. please help. regards, ranjeet kanth
ext.create('ext.button.button', { x: 5, y: 5, text: 'add language', showtext: true, width: 120, menu : menu1 }); var menu1 = { items: [{entryname:'english'},{entryname:'english(us)'}] };
i think you're using wrong component... should using split button:
ext.create('ext.button.split', { ... });
extjs
Comments
Post a Comment