mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
5569caa6878d7af82e8fc8c59725903927e71911
Right now the number of columns is calculated by dividing the available space by the necessary space. I want to have an option to limit the number of calculated columns, without changing the width of the div my grid lives in. In order to limit the number of calculated columns max_cols is set to a number. To have 'unlimited' columns set the value of max_cols to -1 (as ids done in the default settings). This provides the arbitrary useful functionality to set the max number of columns to 0. Any sideeffect caused by this are mitigated by checking that the max_cols is larger than the min_cols setting.
Gridster.js
Gridster is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns. You can even dynamically add and remove elements from the grid.
More at http://gridster.net/.
License
Distributed under the MIT license.
Whodunit
Gridster is built by Ducksboard.
Languages
PHP
37.2%
JavaScript
33.6%
HTML
24.5%
CSS
3%
Less
0.7%
Other
0.8%