]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/classic/grid/force-fit-grid.html
bump version to 7.0.0-4
[extjs.git] / extjs / build / examples / classic / grid / force-fit-grid.html
CommitLineData
947f0963
TL
1<!DOCTYPE html>
2<html>
3<head>
4 <meta http-equiv="X-UA-Compatible" content="IE=edge">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
7 <title>ForceFit Array Grid Example</title>
8 <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
9
10 <!-- GC -->
11
12 <script type="text/javascript" src="../shared/include-ext.js"></script>
13 <script type="text/javascript" src="../shared/options-toolbar.js"></script>
14
15 <!-- page specific -->
16 <style type="text/css">
17 /* style rows on mouseover */
18 .x-grid-row-over .x-grid-cell-inner {
19 font-weight: bold;
20 }
21 /* shared styles for the ActionColumn icons */
22 .x-action-col-cell img {
23 height: 16px;
24 width: 16px;
25 cursor: pointer;
26 }
27 /* custom icon for the "buy" ActionColumn icon */
28 .x-action-col-cell img.buy-col {
29 background-image: url(../shared/icons/fam/accept.png);
30 }
31 /* custom icon for the "alert" ActionColumn icon */
32 .x-action-col-cell img.alert-col {
33 background-image: url(../shared/icons/fam/error.png);
34 }
35
36 .x-ie6 .x-action-col-cell img.buy-col {
37 background-image: url(../shared/icons/fam/accept.gif);
38 }
39 .x-ie6.x-action-col-cell img.alert-col {
40 background-image: url(../shared/icons/fam/error.gif);
41 }
42
43 .x-ie6 .x-action-col-cell img {
44 position:relative;
45 top:-1px;
46 }
47 </style>
48 <script type="text/javascript" src="force-fit-grid.js"></script>
49</head>
50<body>
51 <h1>ForceFit Array Grid Example</h1>
52 <p>This example shows how to use the <code>forceFit</code> config to make columns always fit within the available width.</p>
53 <p>This also illustrates the <code>reserveScrollbar</code> config which means that space for the scrollbar will <em>always</em>
54 be reserved even if the grid panel is tall enough that no scrollbar is required.</p>
55 <p>Note that the js is not minified so it is readable. See <a href="force-fit-grid.js">force-fit-grid.js</a>.</p>
56</body>
57</html>