| 875 |
lars |
1 |
# Responsive
|
|
|
2 |
|
|
|
3 |
Responsive will automatically optimise the table's layout for different screen sizes through the dynamic column visibility control, making your tables useful on desktop and mobile screens.
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
# Installation
|
|
|
7 |
|
|
|
8 |
To use Responsive the best way to obtain the software is to use the [DataTables downloader](//datatables.net/download). You can also include the individual files from the [DataTables CDN](//cdn.datatables.net). See the [documentation](http://datatables.net/extensions/responsive/) for full details.
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
# Basic usage
|
|
|
12 |
|
|
|
13 |
Responsive is initialised using the `responsive` option in the DataTables constructor - a simple boolean `true` will enable the feature. Further options can be specified using this option as an object - see the documentation for details.
|
|
|
14 |
|
|
|
15 |
Example:
|
|
|
16 |
|
|
|
17 |
```js
|
|
|
18 |
$(document).ready( function () {
|
|
|
19 |
$('#myTable').DataTable( {
|
|
|
20 |
responsive: true
|
|
|
21 |
} );
|
|
|
22 |
} );
|
|
|
23 |
```
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
# Documentation / support
|
|
|
27 |
|
|
|
28 |
* [Documentation](https://datatables.net/extensions/responsive/)
|
|
|
29 |
* [DataTables support forums](http://datatables.net/forums)
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
# GitHub
|
|
|
33 |
|
|
|
34 |
If you fancy getting involved with the development of Responsive and help make it better, please refer to its [GitHub repo](https://github.com/DataTables/Responsive).
|
|
|
35 |
|