@microsoft/fast-element > CSSBindingDirective

CSSBindingDirective class

Enables bindings in CSS.

Signature:

export declare class CSSBindingDirective implements HostBehavior, Subscriber, CSSDirective, BindingDirective 

Implements: HostBehavior, Subscriber, CSSDirective, BindingDirective

Constructors

Constructor

Modifiers

Description

(constructor)(dataBinding, targetAspect)

Creates an instance of CSSBindingDirective.

Properties

Property

Modifiers

Type

Description

dataBinding

readonly

Binding

targetAspect

readonly

string

Methods

Method

Modifiers

Description

addedCallback(controller)

Executed when this behavior is attached to a controller.

connectedCallback(controller)

Executed when this behavior's host is connected.

createCSS(add)

Creates a CSS fragment to interpolate into the CSS document.

removedCallback(controller)

Executed when this behavior is detached from a controller.