@microsoft/fast-element > ExecutionContext
ExecutionContext class
Provides additional contextual information available to behaviors and expressions.
Signature:export declare class ExecutionContext<TParent = any, TGrandparent = any>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
event | Event | The current event within an event handler. | |
index | number | The index of the current item within a repeat context. | |
isEven | boolean | Indicates whether the current item within a repeat context has an even index. | |
isFirst | boolean | Indicates whether the current item within a repeat context is the first item in the collection. | |
isInMiddle | boolean | Indicates whether the current item within a repeat context is somewhere in the middle of the collection. | |
isLast | boolean | Indicates whether the current item within a repeat context is the last item in the collection. | |
isOdd | boolean | Indicates whether the current item within a repeat context has an odd index. | |
length | number | The length of the current collection within a repeat context. | |
parent | TParent | The parent data object within a repeat context. | |
parentContext | ExecutionContext<TGrandparent> | The parent execution context when in nested context scenarios. |