Tag:

Gridster不动态移动小部件

我正在尝试使用Gridster.js在我的项目中执行一些拖放function。 我在我的小部件中使用了一堆div,其中包含表单和按钮,而不是使用无序列表。 我的问题是我的第一列无法拖动,我无法将我的小部件放在任何地方。 他们只是回到原来的位置 这是我的布局: //button stuff here //button stuff here //button stuff here //button stuff here … ETC 这是我的js,在doc准备好了 var gridster = $(‘.gridster’).gridster({ widget_margins: [5,5], widget_selector: ‘.dragMe’, widget_base_dimensions: [264, 103], max_cols: 5, max_rows: 5, resize: { enable: true }, draggable: { start: function(event, ui) { dragged = 1; }, stop: function(event, ui){ var id […]

只调整一个gridster小部件可resize

是否有可能只使一个gridster小部件可resize? 我已经做到了,所以用户可以点击小部件标题,以便它扩展和收缩。 我想这样做,以便在扩展小部件时,它可以resize。 可以这样做吗? 如果是这样,怎么样?