External module "data/Instance"
Functions
formFieldsToInstanceItem
formFieldsToInstanceItem<T>( formFields: Record < string , any > , entityName: string , metadata: MetaClassInfo [] , stringIdName?: undefined | string ) : Record < string , any >
Type parameters
Parameters
formFields: Record < string , any >
entityName: string
metadata: MetaClassInfo []
Optional stringIdName: undefined | string
Returns Record < string , any >
instance
Type parameters
Parameters
instanceItemToFormFields
instanceItemToFormFields<T>( item: Record < string , any > | undefined , entityName: string , metadata: MetaClassInfo [] , displayedProperties?: string [] , stringIdName?: undefined | string ) : Record < string , any >
Type parameters
Parameters
item: Record < string , any > | undefined
entityName: string
metadata: MetaClassInfo []
Optional displayedProperties: string []
Optional stringIdName: undefined | string
Returns Record < string , any >
stripTemporaryIds
stripTemporaryIds( item: Record < string , any > ) : Record < string , any >
Parameters
item: Record < string , any >
Returns Record < string , any >
Const useInstance
Type parameters
Parameters
Const withDataInstance
Parameters
Returns (Anonymous function)
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Transforms the antd Form fields values into format expected by Instance item, which is generally the same as the format expected by REST API, except that Instance item may have the following properties that are stripped before the commit: