1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>Actions Example</title>
6 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
7 <link rel="stylesheet" type="text/css" href="../shared/example.css" />
8 <script type="text/javascript" src="../../bootstrap.js"></script>
10 <!-- page specific -->
11 <style type="text/css">
12 /* style rows on mouseover */
13 .x-grid-row-over .x-grid-cell-inner {
17 /* Style the buyAction Components; Button and MenuItem */
19 background-image: url(../shared/icons/fam/accept.png) !important;
20 background-repeat: no-repeat !important;
23 <script type="text/javascript" src="action-grid.js"></script>
26 <h1>Actions Example</h1>
27 <p>This example shows how to create multiple active UI event handling widgets from a single Action definition.</p>
28 <p>Both Buttons and MenuItems can be created from the same Action instance. Action's enable, disable, hide, show and
29 setText methods affect every Component created from that Action.<p>
30 <p>In this example, the Action is disabled when there is no grid selection, and this disables both Buttons and MenuItems.</p>
31 <p>Note that the js is not minified so it is readable. See <a href="action-grid.js">action-grid.js</a>.</p>
32 <div id="grid-example"></div>