-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
right-column.xml
60 lines (47 loc) · 1.11 KB
/
right-column.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html-details-right" table-class="display nowrap" order="3">
<css lib="datatables responsive" />
<js lib="jquery datatables responsive">
<![CDATA[
$('#example').DataTable({
columnDefs: [
{
className: 'dtr-control arrow-right',
orderable: false,
target: -1
}
],
responsive: {
details: {
type: 'column',
target: -1
}
}
});
]]>
</js>
<js-vanilla>
<![CDATA[
new DataTable('#example', {
columnDefs: [
{
className: 'dtr-control arrow-right',
orderable: false,
target: -1
}
],
responsive: {
details: {
type: 'column',
target: -1
}
}
});
]]>
</js-vanilla>
<title lib="Responsive">Column control - right</title>
<info><![CDATA[
When using the `column` child row control type, Responsive has the ability to use any column or element as the show / hide control for the row details. This is provided through the `r-init responsive.details.target` option, which can be either a column index, or a jQuery selector.
This example shows the last column in the table being used as the control column.
]]></info>
</dt-example>