]> git.proxmox.com Git - extjs.git/blame - extjs/examples/classic/menu/action-grid.html
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / classic / menu / action-grid.html
CommitLineData
6527f429
DM
1<!DOCTYPE html>\r
2<html>\r
3<head>\r
4 <meta http-equiv="X-UA-Compatible" content="IE=edge">\r
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
6 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">\r
7 <title>Actions Example</title>\r
8 <link rel="stylesheet" type="text/css" href="../shared/examples.css" />\r
9\r
10 <!-- GC -->\r
11\r
12 <script type="text/javascript" src="../shared/include-ext.js"></script>\r
13 <script type="text/javascript" src="../shared/options-toolbar.js"></script>\r
14 <script type="text/javascript" src="../shared/examples.js"></script>\r
15\r
16 <!-- page specific -->\r
17 <style type="text/css">\r
18 /* style rows on mouseover */\r
19 .x-grid-row-over .x-grid-cell-inner {\r
20 font-weight: bold;\r
21 }\r
22\r
23 /* Style the buyAction Components; Button and MenuItem */\r
24 .buy-button {\r
25 background-image: url(../shared/icons/fam/accept.png) !important;\r
26 background-repeat: no-repeat !important;\r
27 }\r
28 </style>\r
29 <script type="text/javascript" src="action-grid.js"></script>\r
30</head>\r
31<body>\r
32 <h1>Actions Example</h1>\r
33 <p>This example shows how to create multiple active UI event handling widgets from a single Action definition.</p>\r
34 <p>Both Buttons and MenuItems can be created from the same Action instance. Action's enable, disable, hide, show and\r
35 setText methods affect every Component created from that Action.<p>\r
36 <p>In this example, the Action is disabled when there is no grid selection, and this disables both Buttons and MenuItems.</p>\r
37 <p>Note that the js is not minified so it is readable. See <a href="action-grid.js">action-grid.js</a>.</p>\r
38 <div id="grid-example"></div>\r
39</body>\r
40</html>\r