Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d06834c

Browse files
committed
add faq
1 parent 8a419fb commit d06834c

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

Gruntfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ module.exports = function(grunt) {
6969
target: './doc/README.md'
7070
}
7171
},
72+
faq: {
73+
options: {
74+
target: './doc/FAQ.md'
75+
}
76+
},
7277
},
7378

7479
jshint: {
@@ -93,7 +98,7 @@ module.exports = function(grunt) {
9398
},
9499
},
95100
docs: {
96-
files: ['README.md', 'doc/README.md'],
101+
files: ['README.md', 'doc/README.md', 'doc/FAQ.md'],
97102
tasks: ['doctoc'],
98103
options: {
99104
},

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Join gridstack.js on Slack: https://gridstackjs.troolee.com
2727
- [Basic usage](#basic-usage)
2828
- [Migrating to v0.2.5](#migrating-to-v025)
2929
- [API Documentation](#api-documentation)
30+
- [Questions and Answers (Q&A)](#questions-and-answers-q&a)
3031
- [Touch devices support](#touch-devices-support)
3132
- [Use with knockout.js](#use-with-knockoutjs)
3233
- [Use with angular.js](#use-with-angularjs)
@@ -136,6 +137,13 @@ when they will be completely removed.
136137

137138
Please check out `doc/README.md` for more information about gridstack.js API.
138139

140+
## Questions and Answers (Q&A)
141+
142+
Please feel free to as a questions here in issues, using [Stackoverflow](http://stackoverflow.com/search?q=gridstack) or [Slack chat](https://gridstackjs.troolee.com).
143+
We will glad to answer and help you as soon as we can.
144+
145+
Also please check our FAQ `doc/FAQ.md` before asking in case the answer is already there.
146+
139147
## Touch devices support
140148

141149
Please use [jQuery UI Touch Punch](https://github.com/furf/jquery-ui-touch-punch) to make jQuery UI Draggable/Resizable

doc/FAQ.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

Comments
 (0)