This is a prerelease version of FAST (3.0.0-rc.1).

@microsoft/fast-element > TemplateLifecycleCallbacks

TemplateLifecycleCallbacks interface

Lifecycle callbacks for template events.

Signature:

export interface TemplateLifecycleCallbacks

Methods

Method

Description

elementDidDefine(name)?

(Optional) Called after the custom element has been defined.

elementDidHydrate(source)?

(Optional) Called after an individual element's hydration has finished.

elementDidRegister(name)?

(Optional) Called after the JS class definition has been registered.

elementWillHydrate(source)?

(Optional) Called before an individual element's hydration begins.

templateDidUpdate(name)?

(Optional) Called after the template has been assigned to the definition.

templateWillUpdate(name)?

(Optional) Called before the template has been evaluated and assigned.