|
| 1 | +Frequently asked questions |
| 2 | +========================== |
| 3 | + |
| 4 | +<!-- START doctoc generated TOC please keep comment here to allow auto update --> |
| 5 | +<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> |
| 6 | +**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* |
| 7 | + |
| 8 | +- [Gridstack doesn't use bootstrap 3 classes. Why you say it's bootstrap 3 friendly.](#gridstack-doesnt-use-bootstrap-3-classes-why-you-say-its-bootstrap-3-friendly) |
| 9 | +- [How can I create a static layout using gridstack.](#how-can-i-create-a-static-layout-using-gridstack) |
| 10 | + |
| 11 | +<!-- END doctoc generated TOC please keep comment here to allow auto update --> |
| 12 | + |
| 13 | +### Gridstack doesn't use bootstrap 3 classes. Why you say it's bootstrap 3 friendly. |
| 14 | + |
| 15 | +**Q:** |
| 16 | + |
| 17 | +Original issue #390: |
| 18 | + |
| 19 | +> Hi, |
| 20 | +> |
| 21 | +> Excuse my ignorance but on your site you write "responsive bootstrap v3 friendly layouts" but how? |
| 22 | +> |
| 23 | +> In none of the examples you actually make use of any bootstrap classes. You add it to head but if you do that with gridster it works exactly the same.. |
| 24 | +> |
| 25 | +> What does gridstack do different then gridster? |
| 26 | +> |
| 27 | +> Reason I'm asking is because I have bootstrap HTML templates I want to put them in the grid so users can move it all around .. then when done have a normal html page (without the draggable grid). I thought gridstack would help to do that in favor of gridster but so far I have not seen any difference between the 2.. |
| 28 | +> |
| 29 | +> Thanks! |
| 30 | +
|
| 31 | +**A:** |
| 32 | + |
| 33 | +We never declare that gridstack uses bootstrap classes. We say that gridstack could be responsive (widgets are not fixed width) it works well on bootstrap 3 pages with fixed or responsive layout. That's why it says bootstrap 3 friendly. |
| 34 | + |
| 35 | +It wasn't a goal for gridstack to create bootstrap 3 layouts. It's not a goal now neither. The goal of gridstack is to create dashboard layouts with draggable/resizable widgets. |
| 36 | + |
| 37 | +Gridstack uses internal grid to implement its logic. DOM nodes are just interpretation of this grid. So we or you probably could create a third party library which exports this internal grid into bootstrap 3/bootstrap 4/absolute divs/whatever layout. But I don't see this as part of gridstack core. As the same as support of angular/knockout/whatever libraries. We're doing all necessary for smooth support but it will never be a part of core. |
| 38 | + |
| 39 | +The main idea is to build as simple and flexible lib as possible. |
| 40 | + |
| 41 | + |
| 42 | +### How can I create a static layout using gridstack. |
| 43 | + |
| 44 | +**Q:** |
| 45 | + |
| 46 | +How can I create a static layout not using jQuery UI, etc. |
| 47 | + |
| 48 | +**A:** |
| 49 | + |
| 50 | +The main propose of gridstack is creating dashboards with draggable and/or resizable widgets. You could disable this behavior by setting `static` option. At this point you will probably |
| 51 | +still need to include jQuery UI. But we will try to decrease dependency of it in near future. |
0 commit comments