Scripting API / inspection/subinspections/AllSubInspectionEventsApi
inspection/subinspections/AllSubInspectionEventsApi
Classes
AllSubInspectionEventsApi
Allows event binding to all subinspections.
Extends
Methods
onAfterEnd()
onAfterEnd(
fn):ScriptEventSubscription
Bind a function to fire after a sub-inspection has ended.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn |
(event) => void |
The function to fire. |
Returns
ScriptEventSubscription
Inherited from
CoreSubInspectionApi.onAfterEnd
onAfterStart()
onAfterStart(
fn):ScriptEventSubscription
Bind a function to fire after a sub-inspection has begun.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn |
(event) => void |
The function to fire. |
Returns
ScriptEventSubscription
Inherited from
CoreSubInspectionApi.onAfterStart
onBeforeDataSubmit()
onBeforeDataSubmit(
fn):ScriptEventSubscription
Bind a function to fire before a sub-inspection submits data. The dataSet property may be modified to change the data being submitted. Note that Real-Time Failures will not be re-checked after the data is modified, and may no longer be valid.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn |
(event) => void |
The function to fire. |
Returns
ScriptEventSubscription
Inherited from
CoreSubInspectionApi.onBeforeDataSubmit
onBeforeEnd()
onBeforeEnd(
fn):ScriptEventSubscription
Bind a function to fire before a sub-inspection ends. preventDefault can be called on the event to prevent the sub inspection from ending.
Parameters
| Parameter | Type | Description |
|---|---|---|
fn |
(event) => void |
The function to fire. |
Returns
ScriptEventSubscription