Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventsBuilder

An helper class to fire events with a fluent syntax

Hierarchy

  • EventsBuilder

Index

Constructors

Methods

Constructors

Private constructor

Methods

Static bind

  • Create a new event associated with he given handler

    Example:

    EventsBuilder
        .bind(config.eventHandler)
        .toArgs(param1, param2)
        .fireIf(condition);

    Type parameters

    • Func: function

    Parameters

    • eventHandler: Func

      The event handler to call

    Returns EventBuilderConfig<Func>

Generated using TypeDoc