@microsoft/fast-element > attr
attr() function
Decorator: Specifies an HTML attribute.
Signature:export declare function attr(target: {}, prop: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
target | {} | The class to define the attribute on. |
prop | string | The property name to be associated with the attribute. |
void