@microsoft/fast-element > AttributeDefinition > setValue
AttributeDefinition.setValue() method
Sets the value of the attribute/property on the source element.
Signature:
setValue(source: HTMLElement, newValue: any): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
source |
HTMLElement |
The source element to access. |
|
newValue |
any |
The value to set the attribute/property to. |
Returns:
void