Skip to main content

@microsoft/fast-element > AttributeDefinition > (constructor)

AttributeDefinition.(constructor)

Creates an instance of AttributeDefinition.

Signature:
constructor(Owner: Function, name: string, attribute?: string, mode?: AttributeMode, converter?: ValueConverter);

Parameters

ParameterTypeDescription
OwnerFunctionThe class constructor that owns this attribute.
namestringThe name of the property associated with the attribute.
attributestringThe name of the attribute in HTML.
modeAttributeModeThe AttributeMode that describes the behavior of this attribute.
converterValueConverterA ValueConverter that integrates with the property getter/setter to convert values to and from a DOM string.