Skip to main content

foundation-utils.slottedstyles

Home > @genesislcap/foundation-utils > SlottedStyles

SlottedStyles class​

A custom element that encapsulates a set of styles that can be applied to slotted elements.

Signature:

export declare class SlottedStyles extends FASTElement 

Extends: FASTElement

Properties​

Property

Modifiers

Type

Description

styles

ElementStyles

The styles to apply to slotted elements.

Methods​

Method

Modifiers

Description

stylesChanged(prev, next)

Called when the styles property changes. Removes the previous styles from the parent element's FAST controller and adds the new styles.