Options
All
  • Public
  • Public/Protected
  • All
Menu

This class is used to extend Automaton functionality so it can be used with React components.

ReactAutomaton always passes the host component instance to it's transition functions as the first argument.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private component

component: IAutomatonComponent

Private handlers

handlers: IReactEventHandlers

mapToState

mapToState: string

Accessors

state

state:

Current state of the Automaton.

Methods

Protected doTransition

reset

  • reset(): void

signal

  • signal(signal: Signal): React.EventHandler<any>

transition

  • transition(signal: Signal, ...args: any[]): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc