Skip to main content

@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

ParameterTypeDescription
sourceHTMLElementThe source element to access.
newValueany
Returns:

void