@microsoft/fast-element > attr
attr() function
Decorator: Specifies an HTML attribute.
Signature:
export declare function attr(config?: DecoratorAttributeConfiguration): (target: {}, property: string) => void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
config |
(Optional) The configuration for the attribute. |
Returns:
(target: {}, property: string) => void