Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5
<title>From Markup Grid Example</title>
6
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
7
<!-- GC -->
8
 	<!-- LIBS -->
9
 	<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
10
 	<!-- ENDLIBS -->
11
 
12
<script type="text/javascript" src="../../ext-all.js"></script>
13
<script type="text/javascript" src="from-markup.js"></script>
14
<link rel="stylesheet" type="text/css" href="grid-examples.css" />
15
<!-- Common Styles for the examples -->
16
<link rel="stylesheet" type="text/css" href="../examples.css" />
17
<style type="text/css">
18
#the-table { border:1px solid #bbb;border-collapse:collapse; }
19
#the-table td,#the-table th { border:1px solid #ccc;border-collapse:collapse;padding:5px; }
20
</style>
21
</head>
22
<body>
23
<script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
24
<h1>From Markup Grid Example</h1>
25
<p>This example shows how to create a grid with from an existing, unformatted HTML table.</p>
26
<p>Note that the js is not minified so it is readable. See <a href="from-markup.js">from-markup.js</a>.</p>
27
<button id="create-grid" type="button">Create grid</button>
28
<br />
29
<br />
30
<table cellspacing="0" id="the-table">
31
        <thead>
32
            <tr style="background:#eeeeee;">
33
                <th>Name</th>
34
                <th>Age</th>
35
                <th>Sex</th>
36
            </tr>
37
        </thead>
38
        <tbody>
39
            <tr>
40
                <td>Barney Rubble</td>
41
                <td>32</td>
42
                <td>Male</td>
43
            </tr>
44
            <tr>
45
                <td>Fred Flintstone</td>
46
                <td>33</td>
47
                <td>Male</td>
48
            </tr>
49
            <tr>
50
                <td>Betty Rubble</td>
51
                <td>32</td>
52
                <td>Female</td>
53
            </tr>
54
            <tr>
55
                <td>Pebbles</td>
56
                <td>1</td>
57
                <td>Female</td>
58
            </tr>
59
            <tr>
60
                <td>Bamm Bamm</td>
61
                <td>2</td>
62
                <td>Male</td>
63
            </tr>
64
        </tbody>
65
    </table>
66
 
67
</body>
68
</html>