Aller au contenu principal

Type Alias: LunaticOptions

LunaticOptions = object

Defined in: src/use-lunatic/type.ts:187

Specific behaviour options defined in the useLunatic hook.

Properties

PropertyTypeDescriptionDefined in
activeControls?booleanEnable data controls (form validation). (default: false)src/use-lunatic/type.ts:221
autoCommit?booleanCommit variable change automatically for resizing / cleaning (used for testing) *src/use-lunatic/type.ts:239
autoSuggesterLoading?booleanEnable the preemptive loading of suggester data on Lunatic initialization. (default: false)src/use-lunatic/type.ts:217
componentsOptions?object-src/use-lunatic/type.ts:237
componentsOptions.detailAlwaysDisplayed?boolean-src/use-lunatic/type.ts:237
disableFilters?booleanIgnore filters. (default: false)src/use-lunatic/type.ts:189
disableFiltersDescription?booleanDisable filters description. (default: true)src/use-lunatic/type.ts:192
dontKnowButton?string"Don't know" button label.src/use-lunatic/type.ts:231
features?("MD" | "VTL")[]Enable VTL and Markdown support.src/use-lunatic/type.ts:195
getReferentiel?(name) => Promise<IndexEntry[]>Function called to fetch nomenclatures used by the suggesters.src/use-lunatic/type.ts:219
initialPage?PageTagStarting page at launch. (default: "1")src/use-lunatic/type.ts:213
lastReachedPage?PageTagFurthest page the user ever reached.src/use-lunatic/type.ts:215
logger?LunaticLogger-src/use-lunatic/type.ts:236
management?booleanNot yet implemented. Enable management mode which allow to handle multiple states of the same variable (used by recovery positions). The administrator can switch between COLLECTED, EDITED, INPUTTED modes. (default: false)src/use-lunatic/type.ts:209
missing?booleanEnable missing system. (default: false)src/use-lunatic/type.ts:225
missingShortcut?objectKeyboard shortcut that triggers missing buttons.src/use-lunatic/type.ts:229
missingShortcut.dontKnowstring-src/use-lunatic/type.ts:229
missingShortcut.refusedstring-src/use-lunatic/type.ts:229
missingStrategy?() => voidFunction triggered when a missing button is clicked.src/use-lunatic/type.ts:227
onChange?LunaticChangesHandlerFunction called when a variable is changed by a user input (must be memoized as it is used in dependency of a useCallback by the library).src/use-lunatic/type.ts:200
onVariableChange?(event) => void-src/use-lunatic/type.ts:201
preferences?["COLLECTED"]-src/use-lunatic/type.ts:196
refusedButton?string"Refused" button label.src/use-lunatic/type.ts:233
savingType?"COLLECTED"Key in which the data is saved. (default: "COLLECTED")src/use-lunatic/type.ts:198
shortcut?booleanEnable keyboard shortcuts for checkboxes, radio buttons and missing buttons (default: false).src/use-lunatic/type.ts:211
trackChanges?booleanEnable change tracking to keep a track of what variable changed (allow using getChangedData()). (default: false)src/use-lunatic/type.ts:235
withOverview?booleanEnable overview system. (default: false)src/use-lunatic/type.ts:223