parseDisplayOptions

Commons
stable

Merge caller-supplied display options with `DEFAULT_DISPLAY_OPTIONS` via a deep merge, returning a fully resolved `IInternalDisplayOptions` object ready to be consumed by the display composable.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

options
IDisplayOptions
DEFAULT_DISPLAY_OPTIONS
Partial display configuration supplied by the consumer. Falls back to `DEFAULT_DISPLAY_OPTIONS` when omitted.

API

Valeur de retour

La valeur retournée par cet util.

A fully resolved display options object with defaults filled in for every unspecified field.

Usage

Exemples

Extraits de code prêts à coller.

Resolve display options

typescript