Skip to main content
Version: 1.1.0

ICADataFormBaseConfig

@spartanfx/react v1.1.0


@spartanfx/react / codeapps / ICADataFormBaseConfig

Interface: ICADataFormBaseConfig<TRecord, TId>

Shared config for CodeApps DataForm adapters.

Extends

Extended by

Type Parameters

TRecord

TRecord extends CADataFormRecord

TId

TId extends string | number = string

Properties

PropertyTypeDescriptionOverridesInherited from
autoRefresh?booleanEnable auto-refresh after mutations (default: true).ICAAdapterBaseConfig.autoRefresh-
cacheDuration?numberCache TTL for read results in ms (default: 60_000).-ICAAdapterBaseConfig.cacheDuration
choiceColumns?string[]---
debug?booleanEnable verbose console logging (default: false).-ICAAdapterBaseConfig.debug
disabled?boolean---
fieldInfo?IDataTableFieldType[]---
fields?IDataFormFieldDefinition<DataFormValues>[]---
idColumn?string---
itemId?TId---
metadata?unknown---
mode?DataFormMode---
onError?(error) => voidError callback. Called for every operational failure.-ICAAdapterBaseConfig.onError
onInit?(dataFormContext) => void | Promise<void>---
onLoaded?(record) => void | Promise<void>---
onNotify?CANotifyFnNotification callback. If omitted, hook errors surface via error state only.-ICAAdapterBaseConfig.onNotify
onSave?(record, dataFormContext) => unknown---
onSaved?(record) => void | Promise<void>---
readonly?boolean---
record?TRecord---
retryPolicy?ICARetryPolicyRetry policy for transient failures.-ICAAdapterBaseConfig.retryPolicy
serviceICATabularService<TRecord, TId>---