Skip to main content

foundation-utils.slottedstyles.styleschanged

Home > @genesislcap/foundation-utils > SlottedStyles > stylesChanged

SlottedStyles.stylesChanged() method

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

Signature:

stylesChanged(prev: ElementStyles, next: ElementStyles): void;

Parameters

Parameter

Type

Description

prev

ElementStyles

The previous value of the styles property.

next

ElementStyles

The new value of the styles property.

Returns:

void