You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 7, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 7, 2018. It is now read-only.
the 'items' parameter takes a string that matches to a CSS selector. It can also take a a collection of HTML elements. Only matching elements will be draggable. You can pass any string, so long as it doesn't match any of your widgets. In this case, no elements are matching, which means that drag isn't enabled for anything.
Activity
jShaf commentedon Apr 1, 2013
Looks like this does the trick,
$(".gridster ul:first").gridster().data('gridster').disable()jasonblewis commentedon Jun 6, 2013
which file do you put that in?
dcollazo commentedon Jul 2, 2014
I disabled dragging by adding an 'items' parameter at the end of assets/javascripts/application.coffee:
the 'items' parameter takes a string that matches to a CSS selector. It can also take a a collection of HTML elements. Only matching elements will be draggable. You can pass any string, so long as it doesn't match any of your widgets. In this case, no elements are matching, which means that drag isn't enabled for anything.
trianglegrrl commentedon Apr 15, 2015
Thanks @dcollazo - now it doesn't drive me mental when I use a smaller tablet! The
itemstrick totally worked.