Global
Method summary
name | description |
---|---|
addAction | Register a custom VDL action. This global function is only available within VDL views, you will get an error if you try to call it within a custom HTML view. |
VDL | Register a custom VDL extension. This global function is only available within VDL views, you will get an error if you try to call it within a custom HTML view. |
Members
-
insight - {
typeInsight }
-
Root level variable that provides access to the Xpress Insight JavaScript API.details
Properties:
propertiesName Type Description Formatter typeFormatterThe entity formatter Example
examples// Has a ready method that you should pass you view code into insight.ready(function() { // You will usually need a reference to the view object, fetch this as follows var view = insight.getView(); // You view code goes here });
Methods
- addAction ( actionName, actionConfig )
-
Register a custom VDL action. This global function is only available within VDL views, you will get an error if you try to call it within a custom HTML view.
Parameters:
paramsName Type Description actionName typestringIdentifying name of the VDL action. This is used as the tag selector in the VDL view. actionConfig typeVdlActionVDL Action implementation details - VDL ( name, extension )
-
Register a custom VDL extension. This global function is only available within VDL views, you will get an error if you try to call it within a custom HTML view.
Parameters:
paramsName Type Description name typestringIdentifying name of the extension. This is used as the tag selector if a tag or attribute property is not specified in the extension object. extension typeVdlExtensionExtension definition detailsExample
examples
Back to TopVDL('my-title', { template: '<h4><vdl-content></vdl-content></h4>' }); VDL('my-view-link', { transform: function (element, attributes, api) { var action = 'alert("no view specified")'; if (attributes.view) { action = 'function () { insight.openView("' + attributes.view.rawValue + '") } '; } api.addBinding(element, 'click', action); } });
Type Definitions
-
ActiveTableMarker - {
typeobject }
-
Identifies a cell marker.details
Properties:
propertiesName Type Description rowKey typestringA unique row identifier for the cell. columnVisibleIndex typenumberVisible column index of the cell. -
AttributeAvailableWhenRule - {
typeObject }
-
Attribute availability rule.details
Properties:
propertiesName Type Argument Description attribute typestringoptional Name of the attribute to to test against rule typestringoptional Name of the rule to apply (equals, isEmpty, ...) value typestring | number | booleanoptional Value to test for -
AttributeValidation - {
typeObject }
-
Attribute validation rules.details
Properties:
propertiesName Type Argument Description range typeArray.<number>optional Number within a range [0] min, [1] max allowedValues typeArray.<string>optional List of allowed values - EntityValidatorCallback ( entityName, value, indices ) → {Result}
-
Parameters:
paramsName Type Description entityName typestringThe name of the entity to validate value type*The new value to validate indices typeArray.<*>Element index, if an array entity detailsReturns:returns tableType Description typeResultThe validation result and a message, in in error -
ExpressionVarDoc - {
typeObject }
-
Expression variable documentation.details
Properties:
propertiesName Type Description name typestringName of the variable type typestringData type of the variable description typestringDescription of the variable -
ExtensionAttribute - {
typeObject }
-
VDL Extension attribute definition.details
Properties:
propertiesName Type Argument Default Description name typestringThe name of the attribute description typestringoptional The description of the attribute acceptsExpression typebooleanoptional false Attribute accepts an expression expression type'all' | 'static' | 'dynamic'optional 'static' Whether attribute accepts/requires expression or just a static value required typebooleanoptional false Whether the attribute is required defaultValue typestringoptional Specify a default value for the attribute valueType typestring | Array.<string>optional 'string' The data type(s) of the attribute value docIgnore typebooleanoptional false Whether to include the attribute in VDLDoc availableWhen typeArray.<AttributeAvailableWhenRule>optional List of rules to determine if the attribute is available mutexGroup typestringoptional Name of a group in which only one member attribute can be specified expressionVars typeArray.<ExpressionVarDoc>Documentation on available expression variables validation typeAttributeValidationoptional Validation rules -
ExtensionAttributeMutex - {
typeArray.<string> }
-
VDL Extension attribute mutex. List of attribute names where only one can be specified per element.details
-
ExtensionDoc - {
typeObject }
-
VDL Extension documentation.details
Properties:
propertiesName Type Argument Default Description ignore typebooleanoptional false Should the extension be ignored when generating the documentation group typestringoptional The group the vdl extension belongs to description typestringoptional Description of the VDL extension descriptionAsHtml typebooleanoptional false Should the description be treated as HTML, defaults to false elementContents typeObjectoptional Documents the element contents Properties
propertiesName Type Argument Default Description description typestringoptional Describes what contents are allowed inside the element acceptsMarkup typebooleanoptional false Whether markup is allowed within the element contents example typestringoptional Pre-formatted markup example of the extension -
Folder - {
typeObject }
-
details
Properties:
propertiesName Type Description displayName typestringThe name of the folder id typestringThe ID representing the folder objectType typestringThe type of this object ownerId typestringthe owner username of the folder parent typestringThe parent object reference of this folder path typestringThe path to this folder shareStatus typestringthe share status of this folder url typestringthe url to this folder resource -
NewAttachmentOptions - {
typeObject }
-
Optional information to create a new attachment.details
Properties:
propertiesName Type Argument Description options.filename typestringoptional The new attachment filename options.fileExtension typestringoptional The new attachment extension. If filename is also present the extension will be appended to it (separated by a dot), otherwise the extension will be appended to the default filename. options.editorId typestringoptional Editor to create the attachment with options.tag typestringoptional Tag to add to the new attachment - NotifyCallback ( scenario, viewProperties )
-
Called when scenario observer data changes. The callback gets passed either a single Scenario, if observing withFirstScenario, or an array of Scenario objects, in all other cases. The Scenario objects are special in that the only allow access to entities that are being declared by the ScenarioObserver. The second argument is an object that allows access to the view properties declared by the ScenarioObserver.
Parameters:
paramsName Type Description scenario typeScenario | Array.<Scenario>A single scenario or ordered list of scenarios depending on what is declared by the scenario observer viewProperties typeMaskedViewPropertiesAn accessor object to access the view properties declared by the scenario observer details -
PrimitiveType - {
typenumber | boolean | string }
-
A primitive type. Number, Boolean or Stringdetails
-
TableCellIndex - {
typeobject }
-
A cell index. This is not the display position in the table but its internal index that can be used to lookup the cell object from the DataTable API.details
Properties:
propertiesName Type Description row typenumbercolumn typenumbercolumnVisible typenumber -
VdlAction - {
typeObject }
-
VDL Action interface.details
Properties:
propertiesName Type Argument Description name typestringoptional Identifying name of the VDL action displayName typestringoptional Display name of the VDL action isAction typebooleanoptional is a VDL Action attributes typeArray.<ExtensionAttribute>optional List of attributes for the VDL action attributeMutex typeArray.<ExtensionAttributeMutex>optional List of mutually exclusive attributes doc typeExtensionDocoptional Documents the VDL action run typefunctionoptional main VDL Action callback -
VdlAttribute - {
typeObject }
-
A parsed VDL attribute.details
Properties:
propertiesName Type Argument Description entities typeVdlEntitiesoptional entities discovered, indexed by name, a list of scenarios indices rawValue typestringThe original, unprocessed attribute text expression typeObjectProperties
propertiesName Type Description value typestringThe processed expression derived from the attribute text isString typebooleanWhether the expression is a plain string value, i.e. wrapped in double-quotes - VdlErrorTargetSelector ( element ) → {Element|jQuery}
-
Given an element that has a transform error, select an alternative target element to apply the error message too.
Parameters:
paramsName Type Description element typeElementThe element in error detailsReturns:returns tableType Description typeElement | jQueryThe element to transfer the error to -
VdlExtension - {
typeObject }
-
VDL Extension interface.details
Properties:
propertiesName Type Argument Default Description name typestringoptional Identifying name of the extension tag typestringoptional Tag name matched when discovering instances isContainer typebooleanoptional can contain other elements isAction typebooleanoptional is a VDL Action attributes typestring | Array.<string> | ExtensionAttribute | Array.<ExtensionAttribute>optional One or more attribute names to match when discovering instances attributeMutex typeArray.<ExtensionAttributeMutex>optional List of mutually exclusive attributes modifiesDescendants typebooleanoptional true Whether the extension modifies, and controls descendant nodes. When true it is not possible to reference other extensions in the descendant nodes that have this flag set to true. requiredParent typestring | Array.<string>optional Name of the required parent tag, if an array then it should be one of the items from that array transform typeVdlExtensionTransformHow to transform matched elements template typestringoptional Knockout component HTML template errorTargetSelector typeVdlErrorTargetSelectoroptional Callback to select an alternative element to apply any transform errors too doc typeExtensionDocoptional Documents the VDL extension createViewModel typeViewModelFactoryoptional Knockout view model factory function - VdlExtensionTransform ( element, attributes, api )
-
Transform matched DOM elements before Knockout is applied to the DOM.
Parameters:
paramsName Type Description element typeElementMatched element attributes typeObject.<string, VdlAttribute>Map of the parsed attributes on the element api typeExtensionApiThe extension API for modifying the global view model and manipulating the DOM details -
VdlValidator - {
typeObject }
-
VDL Validator interface.details
Properties:
propertiesName Type Argument Description name typestringoptional Identifying name of the extension validate typefunctionoptional The function that will carry out the validation - ViewModelFactory ( params, componentInfo ) → {Object}
-
Factory function to create a view model.
Parameters:
paramsName Type Description params typeObject.<string, *>Map or parameters passed from the custom element componentInfo typeObjectProperties
paramsName Type Description element typeElementThe element the component is being injected into. When createViewModel is called, the template has already been injected into this element, but isn't yet bound. templateNodes typeArray.<Element>An array containing any DOM nodes that have been supplied to the component detailsReturns:returns tableType Description typeObjectThe generated view model
© 2001-2020 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.