Skip to main content
Version: 1.x

@microsoft/fast-foundation > PropertyStyleSheetBehavior

PropertyStyleSheetBehavior class

A behavior to add or remove a stylesheet from an element based on a property. The behavior ensures that styles are applied while the property matches and that styles are not applied if the property does not match.

Signature:
export declare class PropertyStyleSheetBehavior implements Behavior 

Constructors

ConstructorModifiersDescription
(constructor)(propertyName, value, styles)Constructs a PropertyStyleSheetBehavior instance.

Methods

MethodModifiersDescription
bind(elementInstance)Binds the behavior to the element.