Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface used to define a behavior

Type parameters

  • T

Hierarchy

  • Behavior

Implemented by

Index

Properties

Methods

Properties

name: string

gets or sets behavior's name

Methods

  • attach(target: T): void
  • Called when the behavior is attached to a target

    Parameters

    • target: T

      defines the target where the behavior is attached to

    Returns void

  • detach(): void
  • Called when the behavior is detached from its target

    Returns void

  • init(): void
  • Function called when the behavior needs to be initialized (after attaching it to a target)

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme