forked from glittershark/reactable
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
55 lines (54 loc) · 3.81 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<script src="http://cdn.bootcss.com/react/0.14.0/react.min.js"></script>
<script src="http://cdn.bootcss.com/react/0.14.0/react-dom.min.js"></script>
<script src="http://cdn.bootcss.com/react/0.13.3/JSXTransformer.js"></script>
<script src="build/reactable.js" type="text/javascript"></script>
<script type="text/jsx">
/** @jsx React.DOM */
var Table = Reactable.Table,
Thead = Reactable.Thead,
Th = Reactable.Th,
Tr = Reactable.Tr,
Td = Reactable.Td,
unsafe = Reactable.unsafe;
React.render(
<Table className="table" id="table" data={[
{ Name: Reactable.unsafe('<span id="griffins-name">Griffin Smith</span>'), Age: '18'},
{ Age: '28', Position: Reactable.unsafe('<span id="who-knows-job">Developer</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-name1">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-name2">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-name3">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-nam4e">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-nam5e">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-nam6e">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-nam7e">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-na8me">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-na9me">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-na0me">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-na-me">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-na11me">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-nam2e">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-na1m1e">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-1name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-2name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-3name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-4name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-5name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-6name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-7name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-8name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-9name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-0name">Lee Salminen</span>')},
{ Age: '23', Name: Reactable.unsafe('<span id="lees-11name">Lee Salminen</span>')}
]} sortable={['Name']} itemsPerPage={5} pageButtonLimit={5} rowOptions="1,2,5,10,all" />,
document.getElementById('test-div')
);
</script>
</head>
<body>
<div id="test-div"></div>
</body>
</html>