@microsoft/fast-element > DefaultExecutionContext
DefaultExecutionContext class
The default execution context for template views.
Signature:
export declare class DefaultExecutionContext<TParent> implements ExecutionContext<TParent>
Implements: ExecutionContext<TParent>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Event |
The current event within an event handler. | |
|
number |
The index of the current item within a repeat context. | ||
|
|
boolean |
Indicates whether the current item within a repeat context has an even index. | |
|
|
boolean |
Indicates whether the current item within a repeat context is the first item in the collection. | |
|
|
boolean |
Indicates whether the current item within a repeat context is somewhere in the middle of the collection. | |
|
|
boolean |
Indicates whether the current item within a repeat context is the last item in the collection. | |
|
|
boolean |
Indicates whether the current item within a repeat context has an odd index. | |
|
number |
The length of the current collection within a repeat context. | ||
|
|
TParent |
The parent data source within a nested context. | |
|
|
ExecutionContext<TParent> |
The parent execution context when in nested context scenarios. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Returns the typed event detail of a custom event. | ||
|
Returns the typed event target of the event. |