import AbstractEvent from '@shopify/draggable/src/shared/AbstractEvent/AbstractEvent.js'
AbstractEvent
All events fired by draggable inherit this class. You can call cancel()
to
cancel a specific event or you can check if an event has been canceled by
calling canceled()
.
Static Member Summary
Static Public Members | ||
public static abstract |
Event cancelable |
|
public static abstract |
Event type |
Constructor Summary
Public Constructor | ||
public |
constructor(data: object) AbstractEvent constructor. |
Member Summary
Public Members | ||
public |
|
|
public get abstract |
cancelable: Boolean: * Read-only cancelable |
|
public |
data: * |
|
public get abstract |
Read-only type |
Method Summary
Public Methods | ||
public abstract |
cancel() Cancels the event instance |
|
public abstract |
Check if event has been canceled |
|
public |
clone(data: Object): AbstractEvent Returns new event instance with existing event data. |
Static Public Members
Public Constructors
Public Members
public data: * source
Public Methods
public clone(data: Object): AbstractEvent source
Returns new event instance with existing event data. This method allows for overriding of event data.
Params:
Name | Type | Attribute | Description |
data | Object |