ui-calendar icon indicating copy to clipboard operation
ui-calendar copied to clipboard

Need to retrieve object dropped on UI calendar

Open snadakuduru opened this issue 12 years ago • 3 comments

I am not able to get handle on the DOM element for the dropped element on the UI calendar. Saw other threads, tickets without closure.

Could someone help please...

Thanks Sandeep

snadakuduru avatar May 12 '14 19:05 snadakuduru

can you please create a reproducible scenario with plunker?

joshkurz avatar May 12 '14 19:05 joshkurz

Sure, though my question is exactly same as that on #87

How do I get the DOM element, since fullcalendar suggests 'this' to get the dropped DOM element

https://github.com/angular-ui/ui-calendar/issues/107#issuecomment-42877148

Thanks Sandeep

snadakuduru avatar May 12 '14 20:05 snadakuduru

I have used ui.helper.context with success.

$scope.uiConfig = {
  calendar: {
    drop: function (date, allDay, jsEvent, ui) {
      console.log(ui.helper.context)
    }
  }
}

johnschult avatar May 18 '14 20:05 johnschult