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

Skip to content

Commit 4544637

Browse files
committed
options section
1 parent b92f6a0 commit 4544637

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,25 @@ Usage
2424

2525
Coming soon...
2626

27+
## Options
28+
29+
- `width` - amount of columns (default: 12)
30+
- `item_class` - widget class (default: 'grid-stack-item')
31+
- `placeholder_class` - class for placeholder (default: 'grid-stack-placeholder')
32+
- `handle` - draggable handle selector (default: '.grid-stack-item-content')
33+
- `cell_height` - one cell height (default: 60)
34+
- `vertical_margin` - vertical gap size (default: 20)
35+
- `auto` - if `false` it tells to do not initialize existing items (default: true)
36+
- `min_width` - minimal width. If window width is less grid will be shown in one-column mode (default: 768)
37+
2738
## Item attributes
2839

2940
- `data-gs-x`, `data-gs-y` - element position
3041
- `data-gs-width`, `data-gs-height` - element size
3142
- `data-gs-max-width`, `data-gs-min-width`, `data-gs-max-height`, `data-gs-min-height` - element constraints
3243
- `data-gs-no-resize` - disable element resizing
33-
- `data-gs-auto-position` - tells to ignore `data-gs-x` and `data-gs-y` attributes and to place element to first available
34-
position
44+
- `data-gs-auto-position` - tells to ignore `data-gs-x` and `data-gs-y` attributes and to place element to the first
45+
available position
3546

3647
## Use with knockout.js
3748

0 commit comments

Comments
 (0)