Home > Web Front-end > JS Tutorial > body text

Easily learn the jQuery plug-in EasyUI EasyUI to create menus and buttons_jquery

WBOY
Release: 2016-05-16 15:28:45
Original
1127 people have browsed it

1. Create a simple menu with EasyUI

Menu is defined in some DIV tags, as shown below:

<div id="mm" class="easyui-menu" style="width:120px;">
 <div onclick="javascript:alert('new')">New</div>
 <div>
 <span>Open</span>
 <div style="width:150px;">
 <div><b>Word</b></div>
 <div>Excel</div>
 <div>PowerPoint</div>
 </div>
 </div>
 <div icon="icon-save">Save</div>
 <div class="menu-sep"></div>
 <div>Exit</div>
</div>
Copy after login

When the menu is created, it will not be displayed. Call the 'show' method to display it or the 'hide' method to hide it:

$('#mm').menu('show', {
 left: 200,
 top: 100
});
Copy after login

2. EasyUI creation button
1. EasyUI creates a link button (Link Button)
Typically, buttons are created using the

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!