Skip to main content

@microsoft/fast-element > Controller > onAttributeChangedCallback

Controller.onAttributeChangedCallback() method

Runs the attribute changed callback for the associated element.

Signature:
onAttributeChangedCallback(name: string, oldValue: string, newValue: string): void;

Parameters

ParameterTypeDescription
namestringThe name of the attribute that changed.
oldValuestringThe previous value of the attribute.
newValuestringThe new value of the attribute.
Returns:

void