How to extend a jquery ui widget ? (1.7)

前端 未结 6 1388
终归单人心
终归单人心 2020-12-08 00:40

I would like to create a custom version of the sortable widget. I have been searching for documentation, but could not find something really accurate. The best information I

6条回答
  •  孤街浪徒
    2020-12-08 01:11

    Regarding the selected solution above:

    $.widget("ui.customsortable", $.extend(true, {}, $.ui.sortable.prototype, {
    

    If you are extending one objects options into another, the [deep] flag of true will give you the desired results.

提交回复
热议问题