mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 10:38:15 +01:00
add missing lib
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
MIT license
|
||||
|
||||
Copyright (c) 2011-2015 SpryMedia Limited
|
||||
http://datatables.net
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Scroller
|
||||
|
||||
Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on screen every quickly. What the virtual rendering means is that only the visible portion of the table (and a bit to either side to make the scrolling smooth) is drawn, while the scrolling container gives the visual impression that the whole table is visible. This is done by making use of the pagination abilities of DataTables and moving the table around in the scrolling container DataTables adds to the page. The scrolling container is forced to the height it would be for the full table display using an extra element.
|
||||
|
||||
Key features include:
|
||||
|
||||
* Speed! The aim of Scroller for DataTables is to make rendering large data sets fast
|
||||
* Full compatibility with DataTables' deferred rendering for maximum speed
|
||||
* Integration with state saving in DataTables (scrolling position is saved)
|
||||
* Support for scrolling with millions of rows
|
||||
* Easy to use
|
||||
|
||||
|
||||
# Installation
|
||||
|
||||
To use Scroller the primary 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/scroller/) for full details.
|
||||
|
||||
## NPM and Bower
|
||||
|
||||
If you prefer to use a package manager such as NPM or Bower, distribution repositories are available with software built from this repository under the name `datatables.net-scroller`. Styling packages for Bootstrap, Foundation and other styling libraries are also available by adding a suffix to the package name.
|
||||
|
||||
Please see the DataTables [NPM](//datatables.net/download/npm) and [Bower](//datatables.net/download/bower) installation pages for further information. The [DataTables installation manual](//datatables.net/manual/installation) also has details on how to use package managers with DataTables.
|
||||
|
||||
|
||||
# Basic usage
|
||||
|
||||
Scroller is initialised using the `scroller` 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.
|
||||
|
||||
```js
|
||||
$(document).ready( function () {
|
||||
$('#example').DataTable( {
|
||||
scroller: true
|
||||
} );
|
||||
} );
|
||||
```
|
||||
|
||||
Note that rows in the table must all be the same height. Information in a cell which expands on to multiple lines will cause some odd behaviour in the scrolling. Additionally, the table's `cellspacing` parameter must be set to 0, again to ensure the information display is correct.
|
||||
|
||||
|
||||
# Documentation / support
|
||||
|
||||
* [Documentation](https://datatables.net/extensions/scroller/)
|
||||
* [DataTables support forums](http://datatables.net/forums)
|
||||
|
||||
|
||||
# GitHub
|
||||
|
||||
If you fancy getting involved with the development of Scroller and help make it better, please refer to its [GitHub repo](https://github.com/DataTables/Scroller)
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
div.DTS {
|
||||
display: block !important;
|
||||
}
|
||||
div.DTS tbody th,
|
||||
div.DTS tbody td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.DTS div.DTS_Loading {
|
||||
z-index: 1;
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody {
|
||||
background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px);
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody table {
|
||||
z-index: 2;
|
||||
}
|
||||
div.DTS div.dataTables_paginate,
|
||||
div.DTS div.dataTables_length {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.DTS tbody tr.even {
|
||||
background-color: white;
|
||||
}
|
||||
1
htdocs/includes/jquery/plugins/datatables/extensions/Scroller/css/scroller.bootstrap.min.css
vendored
Normal file
1
htdocs/includes/jquery/plugins/datatables/extensions/Scroller/css/scroller.bootstrap.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div.DTS{display:block !important}div.DTS tbody th,div.DTS tbody td{white-space:nowrap}div.DTS div.DTS_Loading{z-index:1}div.DTS div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px)}div.DTS div.dataTables_scrollBody table{z-index:2}div.DTS div.dataTables_paginate,div.DTS div.dataTables_length{display:none}div.DTS tbody tr.even{background-color:white}
|
||||
@@ -0,0 +1,20 @@
|
||||
div.DTS {
|
||||
display: block !important;
|
||||
}
|
||||
div.DTS tbody th,
|
||||
div.DTS tbody td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.DTS div.DTS_Loading {
|
||||
z-index: 1;
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody {
|
||||
background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px);
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody table {
|
||||
z-index: 2;
|
||||
}
|
||||
div.DTS div.dataTables_paginate,
|
||||
div.DTS div.dataTables_length {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
div.DTS{display:block !important}div.DTS tbody th,div.DTS tbody td{white-space:nowrap}div.DTS div.DTS_Loading{z-index:1}div.DTS div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px)}div.DTS div.dataTables_scrollBody table{z-index:2}div.DTS div.dataTables_paginate,div.DTS div.dataTables_length{display:none}
|
||||
@@ -0,0 +1,17 @@
|
||||
div.DTS tbody th,
|
||||
div.DTS tbody td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.DTS div.DTS_Loading {
|
||||
z-index: 1;
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody {
|
||||
background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px);
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody table {
|
||||
z-index: 2;
|
||||
}
|
||||
div.DTS div.dataTables_paginate,
|
||||
div.DTS div.dataTables_length {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
div.DTS tbody th,div.DTS tbody td{white-space:nowrap}div.DTS div.DTS_Loading{z-index:1}div.DTS div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px)}div.DTS div.dataTables_scrollBody table{z-index:2}div.DTS div.dataTables_paginate,div.DTS div.dataTables_length{display:none}
|
||||
@@ -0,0 +1,20 @@
|
||||
div.DTS {
|
||||
display: block !important;
|
||||
}
|
||||
div.DTS tbody th,
|
||||
div.DTS tbody td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.DTS div.DTS_Loading {
|
||||
z-index: 1;
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody {
|
||||
background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px);
|
||||
}
|
||||
div.DTS div.dataTables_scrollBody table {
|
||||
z-index: 2;
|
||||
}
|
||||
div.DTS div.dataTables_paginate,
|
||||
div.DTS div.dataTables_length {
|
||||
display: none;
|
||||
}
|
||||
1
htdocs/includes/jquery/plugins/datatables/extensions/Scroller/css/scroller.jqueryui.min.css
vendored
Normal file
1
htdocs/includes/jquery/plugins/datatables/extensions/Scroller/css/scroller.jqueryui.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div.DTS{display:block !important}div.DTS tbody th,div.DTS tbody td{white-space:nowrap}div.DTS div.DTS_Loading{z-index:1}div.DTS div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px)}div.DTS div.dataTables_scrollBody table{z-index:2}div.DTS div.dataTables_paginate,div.DTS div.dataTables_length{display:none}
|
||||
Reference in New Issue
Block a user