AttributeMode type
@microsoft/fast-element > AttributeMode
AttributeMode type
The mode that specifies the runtime behavior of the attribute.
Signature:
export declare type AttributeMode = typeof reflectMode | typeof booleanMode | "fromView";
Remarks
By default, attributes run in reflect
mode, propagating their property values to the DOM and DOM values to the property. The boolean
mode also reflects values, but uses the HTML standard boolean attribute behavior, interpreting the presence of the attribute as true
and the absence as false
. The fromView
behavior only updates the property value based on changes in the DOM, but does not reflect property changes back.