mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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.
Description
Languages
PHP
85.1%
JavaScript
6.6%
Blade
4.3%
CSS
1.8%
Python
1.1%
Other
1%