Flag indicating pending property changes are being processed
Flag indicating if element has been connected to DOM at least once
Flag indicating if this is the first update to occur
Initial values of properties
Flag indicating if there are any pending changes in the current update cycle
Array of property names
Current values of properties <string, any>
Indicates if unreflected attributes should be removed on initialisation
Map of all properties to their new values, that have changed in the current update cycle
Promise that will resolve when all the current updates have been triggered
Returns true if the component has been rendered on the server and has not yet been rehydrated
Object keyed by a CSS Selector to an object mapping DOM event names to the function that should be called when the event occurs. The function will be automatically bound to the current element. Alternatively the event name can map to a TargetEvent to enable binding to different targets and/or use different event options
Property definitions Prop
A list of all attributes whose values should be used to set
properties, using attributeName
set in props if available
Property definitions
Does the current client context support Declarative Shadow DOM
Static template string
Returns a getter for named property
Property name
Sets property value from named attribute
Property name
Attribute value
Sets attribute from named property value
Property name
Property value
Returns a setter method for named property
Property name
Callback triggered when an attribute with a name matching a property name is changed
Attribute name
Old attribute value
New attribute value
Called when all pending property value changes have been processed, but before their targets have been updated. Changes made to properties in this callback will not trigger another update, but the updated values will be used for the current update.
A Map of properties and their old values that have changed in the current cycle
If an array of property names (or a Promise that resolves to an array) is
returned then those properties will not have their targets updated. If
a promise is returned then it will be await
ed
Called when an element is attached to the DOM
Called after the initial update of this component has occurred.
Set up initial values of properties
Manually request an update cycle to run
Set initial property values
Trigger an update to the component that will be run at the end of the current task
Update property targets for all properties whose values have changed or have been manually requested
Returns a promise that will resolve when the current update cycle is complete, or immediately if there is no update pending.
Update the targets for property
Called when all pending property target updates have been called. Changes made to properties in this callback will trigger another update cycle.
A Map of properties and their old values that have had their targets updated in the current cycle.
If a promise is returned then it will be
await
ed - this is useful in a server context where, if further work is
initiated that results in property changes (and targets updated), the
response shouldn't be set until all changes have been processed.
Generated using TypeDoc
Object of attribute names to property names