mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Added assets + dependencies
This commit is contained in:
BIN
bower_components/datatables-responsive/examples/initialisation/.DS_Store
vendored
Executable file
BIN
bower_components/datatables-responsive/examples/initialisation/.DS_Store
vendored
Executable file
Binary file not shown.
36
bower_components/datatables-responsive/examples/initialisation/ajax.xml
vendored
Executable file
36
bower_components/datatables-responsive/examples/initialisation/ajax.xml
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dt-example table-type="ajax" table-class="display responsive nowrap" order="4">
|
||||
|
||||
<css lib="datatables responsive">
|
||||
div.container { max-width: 1200px }
|
||||
</css>
|
||||
<js lib="jquery datatables responsive">
|
||||
<![CDATA[
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#example').DataTable( {
|
||||
"ajax": "../../../../examples/ajax/data/objects.txt",
|
||||
"columns": [
|
||||
{ "data": "name" },
|
||||
{ "data": "position" },
|
||||
{ "data": "office" },
|
||||
{ "data": "extn" },
|
||||
{ "data": "start_date" },
|
||||
{ "data": "salary" }
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
]]>
|
||||
</js>
|
||||
|
||||
<title lib="Responsive">Ajax data</title>
|
||||
|
||||
<info>< in the DataTable. Note that no special initialisation is required. Responsive is enabled by adding the `-string responsive` class to the `-tag table` element.
|
||||
|
||||
]]></info>
|
||||
|
||||
</dt-example>
|
||||
|
26
bower_components/datatables-responsive/examples/initialisation/className.xml
vendored
Executable file
26
bower_components/datatables-responsive/examples/initialisation/className.xml
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dt-example table-type="html-wide" table-class="display responsive nowrap" order="1">
|
||||
|
||||
<css lib="datatables responsive" />
|
||||
<js lib="jquery datatables responsive">
|
||||
<![CDATA[
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#example').DataTable();
|
||||
} );
|
||||
|
||||
]]>
|
||||
</js>
|
||||
|
||||
<title lib="Responsive">Class name</title>
|
||||
|
||||
<info><![CDATA[
|
||||
|
||||
The easiest way to initialise the Responsive extension for DataTables is simply to add the class `-string responsive` to the table's class name. When the DataTable is initialised the Responsive extension will automatically enable itself on these tables.
|
||||
|
||||
The may also use the class `dt-responsive` to perform the same action, since `responsive` may be used in your stylesheet, or may have some other meaning in a CSS framework being used (for example Bootstrap).
|
||||
|
||||
]]></info>
|
||||
|
||||
</dt-example>
|
||||
|
30
bower_components/datatables-responsive/examples/initialisation/default.xml
vendored
Executable file
30
bower_components/datatables-responsive/examples/initialisation/default.xml
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dt-example table-type="html-wide" table-class="display nowrap" order="5">
|
||||
|
||||
<css lib="datatables responsive" />
|
||||
<js lib="jquery datatables responsive">
|
||||
<![CDATA[
|
||||
|
||||
$.extend( $.fn.dataTable.defaults, {
|
||||
responsive: true
|
||||
} );
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#example').DataTable();
|
||||
} );
|
||||
|
||||
]]>
|
||||
</js>
|
||||
|
||||
<title lib="Responsive">Default initialisation</title>
|
||||
|
||||
<info>< set.
|
||||
|
||||
Extending that ability, Responsive can also be set to initialise by default, as shown in this example thorugh the `$.fn.dataTable.defaults.responsive` property. Extending that, [all of the Responsive options](//datatables.net/extensions/responsive/reference/option/) can also be set using this configuration option (i.e. use `responsive` as an object).
|
||||
|
||||
]]></info>
|
||||
|
||||
</dt-example>
|
||||
|
18
bower_components/datatables-responsive/examples/initialisation/index.xml
vendored
Executable file
18
bower_components/datatables-responsive/examples/initialisation/index.xml
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dt-example order="0">
|
||||
|
||||
<title lib="Responsive">Initialisation</title>
|
||||
|
||||
<info><![CDATA[
|
||||
|
||||
Responsive can be run on a DataTable in a number of different ways:
|
||||
|
||||
* By adding the class `responsive` or `dt-responsive` to the `-tag table`
|
||||
* Using the `r-init responsive` option in the DataTables initialisation
|
||||
* Use the `$.fn.dataTable.Responsive` constructor.
|
||||
|
||||
This set of examples demonstrates these initialisation options.
|
||||
|
||||
]]></info>
|
||||
|
||||
</dt-example>
|
30
bower_components/datatables-responsive/examples/initialisation/new.xml
vendored
Executable file
30
bower_components/datatables-responsive/examples/initialisation/new.xml
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dt-example table-type="html-wide" table-class="display nowrap" order="3">
|
||||
|
||||
<css lib="datatables responsive">
|
||||
div.container { max-width: 1200px }
|
||||
</css>
|
||||
<js lib="jquery datatables responsive">
|
||||
<![CDATA[
|
||||
|
||||
$(document).ready(function() {
|
||||
var table = $('#example').DataTable();
|
||||
|
||||
new $.fn.dataTable.Responsive( table );
|
||||
} );
|
||||
|
||||
]]>
|
||||
</js>
|
||||
|
||||
<title lib="Responsive">`new` constructor</title>
|
||||
|
||||
<info><![CDATA[
|
||||
|
||||
Responsive will automatically detect new DataTable instances being created on a page and initialise itself if it find the `r-init responsive` option or `responsive` class name on the table, as shown in the other examples.
|
||||
|
||||
The third way of initialising Responsive is manually creating a new instance using the `$.fn.dataTable.Responsive` class, as shown in this example (the other two methods are provided using this constructor in a `dt-event init` event handler!).
|
||||
|
||||
]]></info>
|
||||
|
||||
</dt-example>
|
||||
|
30
bower_components/datatables-responsive/examples/initialisation/option.xml
vendored
Executable file
30
bower_components/datatables-responsive/examples/initialisation/option.xml
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dt-example table-type="html-wide" table-class="display nowrap" order="2">
|
||||
|
||||
<css lib="datatables responsive">
|
||||
div.container { max-width: 1200px }
|
||||
</css>
|
||||
<js lib="jquery datatables responsive">
|
||||
<![CDATA[
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#example').DataTable( {
|
||||
responsive: true
|
||||
} );
|
||||
} );
|
||||
|
||||
]]>
|
||||
</js>
|
||||
|
||||
<title lib="Responsive">Configuration option</title>
|
||||
|
||||
<info><![CDATA[
|
||||
|
||||
The Responsive extension for DataTables can be applied to a DataTable in one of two ways; with a specific class name on the table, or using the DataTables initialisation options. This method shows the latter, with the `r-init responsive` option being set to the boolean value `true`.
|
||||
|
||||
The `r-init responsive` option can be given as a boolean value, or as an object with configuration options. If as a boolean, as in this case, the default options are used.
|
||||
|
||||
]]></info>
|
||||
|
||||
</dt-example>
|
||||
|
Reference in New Issue
Block a user