Skip to main content

@microsoft/fast-element > attr

attr() function

Decorator: Specifies an HTML attribute.

Signature:
export declare function attr(config?: DecoratorAttributeConfiguration): (target: {}, property: string) => void;

Parameters

ParameterTypeDescription
configDecoratorAttributeConfigurationThe configuration for the attribute.
Returns:

(target: {}, property: string) => void