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

Skip to content

Commit cc0316e

Browse files
committed
update touch sample
1 parent 18f98eb commit cc0316e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ gridstack.js
22
============
33

44
gridstack.js is a jQuery plugin for widget layout. This is drag-and-drop multi-column grid. It allows you to build
5-
draggable responsive bootstrap v3 friendly layouts. It also works great with [knockout.js](http://knockoutjs.com)
5+
draggable responsive bootstrap v3 friendly layouts. It also works great with [knockout.js](http://knockoutjs.com) and
6+
touch devices.
67

78
Inspired by [gridster.js](http://gridster.net). Built with love.
89

@@ -258,6 +259,15 @@ Sorts array of nodes
258259
Please use [jQuery UI Touch Punch](https://github.com/furf/jquery-ui-touch-punch) to make jQuery UI Draggable/Resizable
259260
working on touch-based devices.
260261

262+
```html
263+
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
264+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
265+
<script src="jquery-ui.min.js"></script>
266+
<script src="jquery.ui.touch-punch.min.js"></script>
267+
268+
<script src="gridstack.js"></script>
269+
```
270+
261271
Also `always_show_resize_handle` option may be useful:
262272

263273
```javascript

0 commit comments

Comments
 (0)