Initializing help system before first use

ViewModelApi

View Model API Holder for helper functions that can be called inside the createViewModel callback.

Method summary

name description
extractScenarioIds Takes the scenarios input parameter and returns and array of scenarios ids.
getView Get an instance of the View object.
unwrap Unwrap a VDL observable.

Constructor

new ViewModelApi ( )

Methods

extractScenarioIds ( scenarios ) → {Array.<string>}

Takes the scenarios input parameter and returns and array of scenarios ids.

Parameters:
Name Type Description
scenarios string | Array.<string> | number | Array.<number> | Scenario | Array.<Scenario> | undefined
Returns:
Type Description
Array.<string> A list of resolved scenario ids
Back to Top
getView ( ) → {View}

Get an instance of the View object.

Returns:
Type Description
View
Back to Top
unwrap ( potentialObservable )

Unwrap a VDL observable.

Parameters:
Name Type Description
potentialObservable
Back to Top

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.