@microsoft/fast-element > ElementController > onAttributeChangedCallback
ElementController.onAttributeChangedCallback() method
Runs the attribute changed callback for the associated element.
Signature:
onAttributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
string |
The name of the attribute that changed. |
|
oldValue |
string | null |
The previous value of the attribute. |
|
newValue |
string | null |
The new value of the attribute. |
Returns:
void