Skip to main content
Version: 2.x

HostBehavior interface

@microsoft/fast-element > HostBehavior

HostBehavior interface

Represents an object that can contribute behavior to a host.

Signature:

export interface HostBehavior<TSource = any> 

Methods

Method

Description

addedCallback(controller)?

(Optional) Executed when this behavior is attached to a controller.

connectedCallback(controller)?

(Optional) Executed when this behavior's host is connected.

disconnectedCallback(controller)?

(Optional) Executed when this behavior's host is disconnected.

removedCallback(controller)?

(Optional) Executed when this behavior is detached from a controller.