@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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(propertyName, value, styles) | Constructs a PropertyStyleSheetBehavior instance. |
Methods
Method | Modifiers | Description |
---|---|---|
bind(elementInstance) | Binds the behavior to the element. |