Namespace

SystemHooks

SystemHooks

The following methods cannot be invoked in cplaceJS but describe methods invoking scripts. This is to help to understand which bindings are provided inside cplaceJS definitions and which types should e returned.

Methods

changeListener(changeEvent)

Reference for cplaceJS change listeners. This method is not callable by hand, but is called by the system when a change was triggered.

For usage and examples see here

Parameters:
Name Type Description
changeEvent ChangeEvent

Object representing the triggering change.

validator(messages, page) → {string}

Reference for cplaceJS validator. This method is not callable by hand, but is called by the system when data is validated.

For usage and examples see here

Parameters:
Name Type Description
messages MessageProvider

Provider for messages defined in the validator dialog.

page Page

The page the validator is called for.

Either a message as a string if the validation failed or null if it passed.

string