AttributeDefinition class
@microsoft/fast-element > AttributeDefinition
AttributeDefinition class
An implementation of Accessor that supports reactivity, change callbacks, attribute reflection, and type conversion for custom elements.
Signature:
export declare class AttributeDefinition implements Accessor
Implements: Accessor
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Creates an instance of AttributeDefinition. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| string | The name of the attribute in HTML. | |
| (Optional) A ValueConverter that integrates with the property getter/setter to convert values to and from a DOM string. | ||
| The AttributeMode that describes the behavior of this attribute. | ||
| string | The name of the property associated with the attribute. | |
| Function | The class constructor that owns this attribute. |
Methods
Method | Modifiers | Description |
|---|---|---|
Gets the value of the attribute/property on the source element. | ||
Sets the value of the attribute/property on the source element. |