[Representation] Update docs

Update documentation to reflect that an event is broadcast
when drops occur. WTD-877.
This commit is contained in:
Victor Woeltjen 2015-02-17 10:56:38 -08:00
parent 156f053421
commit 0510705f3a

View File

@ -107,9 +107,14 @@ introduces three specific gestures as "built in" options, listed by key:
drag-drop domain object composition. drag-drop domain object composition.
* `drop`: Representations with this gesture can serve as drop targets for * `drop`: Representations with this gesture can serve as drop targets for
drag-drop domain object composition. drag-drop domain object composition.
* When a drop occurs, an `mctDrop` event will be broadcast with two
arguments (in addition to Angular's event object): The domain object
identifier for the dropped object, and the position (with `x` and `y`
properties in pixels) of the drop, relative to the top-left of the
representation which features the drop gesture.
* `menu`: Representations with this gesture will provide a custom context * `menu`: Representations with this gesture will provide a custom context
menu (instead of the browser default). menu (instead of the browser default).
* It should be noted that this gesture does _not_ define the appearance * It should be noted that this gesture does _not_ define the appearance
or functionality of this menu; rather, it simply adds a or functionality of this menu; rather, it simply adds a
representation of key `context-menu` to the document at an appropriate representation of key `context-menu` to the document at an appropriate
location. This representation will be supplied by the commonUI bundle. location. This representation will be supplied by the commonUI bundle.