Readonly
controlReadonly
state: Omit<ControlStateApi, "allowInput">Readonly
uuid: stringReturns the control's data object.
Readonly
pageReadonly
field: { Invokes the callback whenever any field value is masked.
The callback function.
A function that removes the callback.
Invokes the callback whenever any field value is unmasked. fieldValue is optional for the case where a mode change results in the masked field not being present in the page response.
The callback function.
Optional
fieldA function that removes the callback.
The supplied callback function will run whenever there is a field change.
The callback that will be invoked when there is a field change.
A function that removes the callback.
Invokes the callback whenever the specified field's value is masked.
The field.
The callback function.
A function that removes the callback.
Invokes the callback whenever the specified field's value is unmasked. fieldValue is optional for the case where a mode change results in the masked field not being present in the page response.
The field.
The callback function.
Optional
fieldA function that removes the callback.
Fetches the unmasked field value and returns it. Note that this also mutates the entry in the field values map, such that subsequent get field value calls return the unmasked value. If the field is already unmasked the returned promise immediately resolves to the value without the fetch. If the user is not authorized to reveal the redacted field, the returned promise will reject.
The field.
A promise that resolves to the field value.
Readonly
file: { Adds the given files to the supplied category.
Deletes files with a matching UUIDs to those in the supplied array of UUID's.
Array of file UUIDs to be deleted.
Deletes the files at the given indexes from the supplied category.
The indexes.
The file category.
Returns the file with the UUID that matches the supplied UUID.
The UUID of the file to be retrieved.
Returns the files for the supplied category.
The file category.
Returns the files fetch promise for the current object. Files are lazily loaded for children.
The supplied callback function will run whenever there is a file change.
The callback that will be invoked when there is a file change.
The callback will run whenever there is an upload of a file.
The callback.
A function that stops the callback running.
Validates and uploads existing file models.
The file models.
Readonly
isReturns whether the page is a draft.
Optional
objectAdds a menu item for the page. Note that this applies to object pages that are not part of a wizard, that is, adding a menu item to the parent object header.
The options for the menu item: the text string, a click listener function, and an optional function to disable the item.
Optional
isA function that removes the menu item.
Returns the reference data label for a given reference data field and code. Note that this is relevant only in View mode, when labels for codes in the field values are returned in the data source part of the page response (meaning there is no need to fetch all reference data).
The reference data field.
The reference data code.
Returns the user group name for the given ID and type. Note that only names that are given as part of the pages' users or groups can be returned (i.e. existing user group values from field values).
The ID of the user group.
The type of the user group.
Invokes the callback whenever a page changes mode.
The callback function.
A function that removes the callback.
An API of methods and properties on a control with no value.