@microsoft/fast-element > HydratableElementController

HydratableElementController class

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

An ElementController capable of hydrating FAST elements from Declarative Shadow DOM.

Signature:

export declare class HydratableElementController<TElement extends HTMLElement = HTMLElement> extends ElementController<TElement> 

Extends: ElementController<TElement>

Properties

Property

Modifiers

Type

Description

lifecycleCallbacks?

static

HydrationControllerCallbacks

(BETA) (Optional) Lifecycle callbacks for hydration events

needsHydration?

protected

boolean

(BETA) (Optional) Controls whether the controller will hydrate during the connect() method. Initialized during the first connect() call to true when the needs-hydration attribute is present on the element.

shadowOptions

ShadowRootOptions | undefined

(BETA) The shadow root options for the component.

Methods

Method

Modifiers

Description

config(callbacks)

static

(BETA) Configure lifecycle callbacks for hydration events

connect()

(BETA) Runs connected lifecycle behavior on the associated element.

disconnect()

(BETA) Unregisters the hydration observer when the element is disconnected.

install()

static

(BETA) Sets the ElementController strategy to HydratableElementController.