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 falsesrc/use-lunatic/type.ts:243
autoCommit?booleanCommit variable change automatically for resizing / cleaning (used for testing) *src/use-lunatic/type.ts:286
autoSuggesterLoading?booleanEnable the preemptive loading of suggester data on Lunatic initialization. Default falsesrc/use-lunatic/type.ts:236
componentsOptions?objectOptions that can be set to override default component behaviour.src/use-lunatic/type.ts:270
componentsOptions.detailAlwaysDisplayed?booleanSet the details ("autre précisez") as always displayed (even if the related "other" modality is not currently selected). Since 3.4.9 Default falsesrc/use-lunatic/type.ts:277
componentsOptions.disableRosterForLoopDeleteRowButton?booleanSet the "remove row" button as disabled in roster for loop. Since 3.7.5 Default falsesrc/use-lunatic/type.ts:283
disableFilters?booleanIgnore filters. Default falsesrc/use-lunatic/type.ts:192
disableFiltersDescription?booleanDisable filters description. Default truesrc/use-lunatic/type.ts:198
dontKnowButton?string"Don't know" button label.src/use-lunatic/type.ts:259
features?("MD" | "VTL")[]Enable VTL and Markdown support.src/use-lunatic/type.ts:201
getReferentiel?(name) => Promise<IndexEntry[]>Function called to fetch nomenclatures used by the suggesters.src/use-lunatic/type.ts:238
initialPage?PageTagStarting page at launch. Default '1'src/use-lunatic/type.ts:229
lastReachedPage?PageTagFurthest page the user ever reached.src/use-lunatic/type.ts:231
logger?LunaticLogger-src/use-lunatic/type.ts:268
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 falsesrc/use-lunatic/type.ts:219
missing?booleanEnable missing system. Default falsesrc/use-lunatic/type.ts:253
missingShortcut?objectKeyboard shortcut that triggers missing buttons.src/use-lunatic/type.ts:257
missingShortcut.dontKnowstring-src/use-lunatic/type.ts:257
missingShortcut.refusedstring-src/use-lunatic/type.ts:257
missingStrategy?() => voidFunction triggered when a missing button is clicked.src/use-lunatic/type.ts:255
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:209
onVariableChange?(event) => void-src/use-lunatic/type.ts:210
preferences?["COLLECTED"]-src/use-lunatic/type.ts:202
refusedButton?string"Refused" button label.src/use-lunatic/type.ts:261
savingType?"COLLECTED"Key in which the data is saved. Default "COLLECTED"src/use-lunatic/type.ts:207
shortcut?booleanEnable keyboard shortcuts for checkboxes, radio buttons and missing buttons. Default falsesrc/use-lunatic/type.ts:224
trackChanges?booleanEnable change tracking to keep a track of what variable changed (allow using getChangedData()). Default falsesrc/use-lunatic/type.ts:267
withOverview?booleanEnable overview system. Default falsesrc/use-lunatic/type.ts:248