Ticket #6219 (new enhancement)

Opened 4 months ago

Last modified 4 days ago

BorderContainer: Add public drag notifications

Reported by: ptwobrussell Owned by: sfoster
Priority: normal Milestone: 1.2
Component: Dijit Version: 1.0
Severity: normal Keywords:
Cc: sfoster, ptwobrussell, peller

Description

It would be nice and there are certainly use cases for being notified for when drag events begin and end. Right now, you have to dip into "private" stuff to pick this up; exposing the functionality via a public function that you could connect to would be nice. sfoster also seems to have had a use case for this, so that makes at least two "regulars" that think it would be helpful. Should be a trivial patch.

Change History

Changed 4 months ago by bill

  • cc sfoster added
  • summary changed from Add public drag notifications to BorderContainer to BorderContainer: Add public drag notifications
  • milestone set to 1.2

Please list (some of) the use cases.

Changed 4 months ago by peller

and why standard DOM event notifications aren't sufficient

Changed 2 weeks ago by dylan

  • owner set to sfoster

Changed 2 weeks ago by peller

oh, are we talking about the splitters?

Changed 4 days ago by sfoster

  • cc ptwobrussell, peller added

I was going to approach this by adding a topic name to the properties of the splitter that we can publish events to. This is of use when you might want content to go into a different state while the splitter is being moved, persist the BC state, defer other updates to the page and so on. There might also be times when you want to abort the drag - though I'm not sure this ticket covers all of that.

If anyone has suggestions for the new property name - it needs to be on the BC prototype, I think and passed onto the splitters' ctor. And, any expectations for what the event payload would be. I'm thinking the event name (dragstart/end/move) container's region, and splitter position

Note: See TracTickets for help on using tickets.