Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseEvent

Base AntOS event definition

export

Hierarchy

  • BaseEvent

Index

Constructors

Properties

Methods

Constructors

constructor

  • new BaseEvent(name: string, force: boolean): BaseEvent
  • Creates an instance of BaseEvent.

    memberof

    BaseEvent

    Parameters

    • name: string

      event name

    • force: boolean

      indicates whether the event is forced

    Returns BaseEvent

Properties

Private force

force: boolean

Placeholder indicates whether the event is forced to be happen

memberof

BaseEvent

name

name: string

The event name placeholder

memberof

BaseEvent

prevent

prevent: boolean

Placeholder indicates whether the event is prevented. This value has not effect if force is set to true

memberof

BaseEvent

Methods

preventDefault

  • preventDefault(): void
  • Prevent the current event. This function has no effect if force is set to true

    memberof

    BaseEvent

    Returns void