Home Reference Source
public class | source

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

AbstractEvent constructor.

Member Summary

Public Members
public
public get abstract

Read-only cancelable

public

data: *

public get abstract

type: String: *

Read-only type

Method Summary

Public Methods
public abstract

cancel()

Cancels the event instance

public abstract

Check if event has been canceled

public

Returns new event instance with existing event data.

Static Public Members

public static abstract cancelable: Boolean source

Event cancelable

Properties:

NameTypeAttributeDescription
cancelable *

public static abstract type: String source

Event type

Properties:

NameTypeAttributeDescription
type *

Public Constructors

public constructor(data: object) source

AbstractEvent constructor.

Params:

NameTypeAttributeDescription
data object

Event data

Public Members

public [canceled]: boolean source

public get abstract cancelable: Boolean: * source

Read-only cancelable

Return:

Boolean

public data: * source

public get abstract type: String: * source

Read-only type

Return:

String

Public Methods

public abstract cancel() source

Cancels the event instance

public abstract canceled(): Boolean source

Check if event has been canceled

Return:

Boolean

public clone(data: Object): AbstractEvent source

Returns new event instance with existing event data. This method allows for overriding of event data.

Params:

NameTypeAttributeDescription
data Object

Return:

AbstractEvent