How to drag&drop elements onto a calendar with angular directives only

前端 未结 2 1355
清歌不尽
清歌不尽 2021-01-03 07:56

I am trying to implement a drag&drop calendar with angular directives. The calendar uses the ui-calendar (https://github.com/angular-ui/ui-calendar), a complete AngularJ

2条回答
  •  爱一瞬间的悲伤
    2021-01-03 08:56

    Haven't used angular-dragdrop, but the documentation says that the config object should contain a onDrop property. Try replacing jqyoui-droppable="{multiple:true}" with jqyoui-droppable="{multiple:true, onDrop: 'drop'}". angular-dragdrop seem to expect onDrop to be a string with the name of a function on the scope.

提交回复
热议问题