Skip to main content
Version: 2.x

ElementView.onUnbind() method

@microsoft/fast-element > ElementView > onUnbind

ElementView.onUnbind() method

Registers an unbind handler with the controller.

Signature:

onUnbind(behavior: {
unbind(controller: ViewController<TSource, TParent>): any;
&#125;): void;

Parameters

Parameter

Type

Description

behavior

{ unbind(controller: ViewController<TSource, TParent>): any; }

An object to call when the controller unbinds.

Returns:

void