开发者

jQuery UI draggable into sortable

When I'm dragging an element from a draggable into a sortable, how do I change the amount of space the sortable elements drop down to make room for the draggable element to be dropped there? Right now, it defaults to the size of my sortable handle (16px), but I'd like to ma开发者_Python百科ke it about 100px or so.

Thank you!


You can style the placeholder element by adding a custom CSS class to it:

.myPlaceHolderClass { height: 100px !important; }

$('#sortable').sortable('option', 'placeholder', 'myPlaceHolderClass');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜