Skip to content

Scripting API / inspection/subinspections/CoreSubInspectionApi

inspection/subinspections/CoreSubInspectionApi

Classes

abstract CoreSubInspectionApi

Extended by

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

ScriptEventSubscription

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

ScriptEventSubscription

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

ScriptEventSubscription

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

ScriptEventSubscription