Home >Web Front-end >JS Tutorial >How to use MenuButton in EasyUI_jquery

How to use MenuButton in EasyUI_jquery

WBOY
WBOYOriginal
2016-05-16 17:51:59957browse

Specific operation implementation method:
Html code:

Copy code The code is as follows:

< ;a id="a4" style="color:#0094ff" icon="icon-lightning">Set column widths in batches

width 80px

width 100px

Width 120px


Custom column width



js:
Copy code The code is as follows:

//Initialization
var ddlMenu = $('#a4').menubutton({ menu: '#cusmenu' });
//menubutton depends on menu , linkbutton these two plug-ins, so we can get her like this
$(ddlMenu.menubutton('options').menu).menu({
onClick: function (item) {
//item For related attributes, see menu
alert(item.text);
}
})

in the API. That's it for today
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn