-
Notifications
You must be signed in to change notification settings - Fork 764
Expand file tree
/
Copy pathdemo.js
More file actions
executable file
·133 lines (131 loc) · 5.4 KB
/
demo.js
File metadata and controls
executable file
·133 lines (131 loc) · 5.4 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* eslint max-len: 0 */
import React from 'react';
import SortTable from './sort-table';
import MultiSortTable from './multi-sort-table';
import DefaultSortTable from './default-sort-table';
import ExternalSort from './manage-sort-external-table';
import CustomSortTable from './custom-sort-table';
import CustomSortTableHasFooter from './custom-sort-table-has-footer';
import CustomSortWithExtraDataTable from './custom-sort-with-extra-data-table';
import ReusableCustomSortTable from './reusable-custom-sort-table';
import SortHookTable from './sort-hook-table';
import DisableSortIndicatorTable from './disable-sort-indicator-table';
import CustomCaretSortTable from './custom-caret-sort-table';
import ExternalMultiSort from './manage-multi-sort-external-table';
class Demo extends React.Component {
render() {
return (
<div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Table Sort Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/sort-table.js</h5>
<SortTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Table Multi Sort Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/multi-sort-table.js</h5>
<MultiSortTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Default Table Sort Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/default-sort-table.js</h5>
<DefaultSortTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Manage Sorting Externally Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/manage-sort-external-table.js</h5>
<ExternalSort />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Manage Multi Sorting Externally Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/manage-multi-sort-external-table.js</h5>
<ExternalMultiSort />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Customize Table Sort Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/custom-sort-table.js</h5>
<CustomSortTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Customize Table Sort Example With Footer</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/custom-sort-table-has-footer.js</h5>
<CustomSortTableHasFooter />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Customize Table Sort With Extra Data Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/custom-sort-with-extra-data-table.js</h5>
<CustomSortWithExtraDataTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Reusable Customize Table Sort Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/reusable-custom-sort-table.js</h5>
<ReusableCustomSortTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Sort Hooks(onSortChange) Example</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/sort-hook-table.js</h5>
<SortHookTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Disable sort indicator</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/disable-sort-indicator-table.js</h5>
<DisableSortIndicatorTable />
</div>
</div>
</div>
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>Custom render for caret</div>
<div className='panel-body'>
<h5>Source in /examples/js/sort/custom-caret-sort-table.js</h5>
<CustomCaretSortTable />
</div>
</div>
</div>
</div>
);
}
}
export default Demo;