Aller au contenu principal

Type Alias: LunaticOptions

LunaticOptions = object

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

Specific behaviour options defined in the useLunatic hook.

Properties​

PropertyTypeDescriptionDefined in
activeControls?booleanEnable data controls (form validation). Default falsesrc/use-lunatic/type.ts:248
activeFilters?ActiveFilterDecides whether or not filters are active. - "ALL": Keep every filters - "EXTERNAL": Keep filter only if it is based on external variables only - "NONE": Remove every filters - "DISABLED": Keep every filters, but never apply it to components (only tag them as they should have been filtered) Default 'ALL'src/use-lunatic/type.ts:203
autoCommit?booleanCommit variable change automatically for resizing / cleaning (used for testing) *src/use-lunatic/type.ts:291
autoSuggesterLoading?booleanEnable the preemptive loading of suggester data on Lunatic initialization. Default falsesrc/use-lunatic/type.ts:241
componentsOptions?objectOptions that can be set to override default component behaviour.src/use-lunatic/type.ts:275
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:282
componentsOptions.disableRosterForLoopDeleteRowButton?booleanSet the "remove row" button as disabled in roster for loop. Since 3.7.5 Default falsesrc/use-lunatic/type.ts:288
disableFiltersDescription?booleanDisable filters description. Default truesrc/use-lunatic/type.ts:193
dontKnowButton?string"Don't know" button label.src/use-lunatic/type.ts:264
features?("MD" | "VTL")[]Enable VTL and Markdown support.src/use-lunatic/type.ts:206
getReferentiel?(name) => Promise<IndexEntry[]>Function called to fetch nomenclatures used by the suggesters.src/use-lunatic/type.ts:243
initialPage?PageTagStarting page at launch. Default '1'src/use-lunatic/type.ts:234
lastReachedPage?PageTagFurthest page the user ever reached.src/use-lunatic/type.ts:236
logger?LunaticLogger-src/use-lunatic/type.ts:273
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:224
missing?booleanEnable missing system. Default falsesrc/use-lunatic/type.ts:258
missingShortcut?objectKeyboard shortcut that triggers missing buttons.src/use-lunatic/type.ts:262
missingShortcut.dontKnowstring-src/use-lunatic/type.ts:262
missingShortcut.refusedstring-src/use-lunatic/type.ts:262
missingStrategy?() => voidFunction triggered when a missing button is clicked.src/use-lunatic/type.ts:260
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:214
onVariableChange?(event) => void-src/use-lunatic/type.ts:215
preferences?["COLLECTED"]-src/use-lunatic/type.ts:207
refusedButton?string"Refused" button label.src/use-lunatic/type.ts:266
savingType?"COLLECTED"Key in which the data is saved. Default "COLLECTED"src/use-lunatic/type.ts:212
shortcut?booleanEnable keyboard shortcuts for checkboxes, radio buttons and missing buttons. Default falsesrc/use-lunatic/type.ts:229
trackChanges?booleanEnable change tracking to keep a track of what variable changed (allow using getChangedData()). Default falsesrc/use-lunatic/type.ts:272
withOverview?booleanEnable overview system. Default falsesrc/use-lunatic/type.ts:253