Version: 4.xx.xx
Interface References
CrudFiltersβ
CrudFilterβ
Key | Type |
---|---|
field | string |
operator | CrudOperators |
value | any |
CrudOperatorsβ
"eq" |
"ne" |
"lt" |
"gt" |
"lte" |
"gte" |
"in" |
"nin" |
"contains" |
"ncontains" |
"containss" |
"ncontainss" |
"between" |
"nbetween" |
"null" |
"nnull" |
"startswith" |
"nstartswith" |
"startswiths" |
"nstartswiths" |
"endswith" |
"nendswith" |
"endswiths" |
"nendswiths";
Type | Description |
---|---|
"eq" | Equal |
"ne" | Not equal |
"lt" | Less than |
"gt" | Greater than |
"lte" | Less than or equal to |
"gte" | Greater than or equal to |
"in" | Included in an array |
"nin" | Not included in an array |
"contains" | Contains |
"ncontains" | Doesn't contain |
"containss" | Contains, case sensitive |
"ncontainss" | Doesn't contain, case sensitive |
"between" | Between |
"nbetween" | Doesn't between |
"null" | Is null |
"nnull" | Is not null |
"startswith" | Starts with |
"nstartswith" | Doesn't start with |
"startswiths" | Starts with, case sensitive |
"nstartswiths" | Doesn't start with, case sensitive |
"endswith" | Ends with |
"nendswith" | Doesn't end with |
"endswiths" | Ends with, case sensitive |
"nendswiths" | Doesn't end with, case sensitive |
CrudSortingβ
CrudSortβ
Key | Type |
---|---|
field | string |
order | "asc" | "desc" |
order type | Description |
---|---|
"asc" | Ascending order |
"desc" | Descending order |
SortOrderβ
"desc" | "asc" | "null";
Paginationβ
Key | Type |
---|---|
current | number |
pageSize | number |
mode | "client" | "server" | "off" |
BaseKeyβ
Type |
---|
string | number |
BaseRecordβ
Key | Type |
---|---|
id? | BaseKey |
[key: string] | any |
HttpErrorβ
Key | Type |
---|---|
message | string |
statusCode | number |
Delete Button Propsβ
ButtonProps
Key | Type |
---|---|
resourceName? | string |
recordItemId? | BaseKey |
onSuccess? | <TData = BaseRecord>(value: { data: TData; }) => void; |
mutationMode? | MutationMode |
hideText? | boolean |
MutationModeβ
"pessimistic" | "optimistic" | "undoable";
UploadedFileβ
Key | Type |
---|---|
uid | string |
name | string |
url | string |
type | string |
size | number |
percent | number |
status | "error" | "success" | "done" | "uploading" | "removed" |
UseImportInputPropsTypeβ
Key | Type |
---|---|
type | "file" |
accept | ".cvs" |
onChange | (event: React.ChangeEvent<HTMLInputElement>) => void |
SuccessErrorNotificationβ
Key | Type |
---|---|
successNotification | (data?: TData, values?: TVariables, resource?: string) => NotificationProperties | Notification Properties | false |
errorNotification | (error?: TError, values?: TVariables, resource?: string) => NotificationProperties | Notification Properties | false |
MetaDataQueryβ
Key | Type |
---|---|
[k: string] | any |
operation? | string |
fields? | Array<string | object | NestedField> |
variables? | VariableOptions |
queryContext? | Omit<QueryFunctionContext, "meta"> |
NestedFieldβ
Key | Type |
---|---|
operation | string |
variables | VariableOptions[] |
fields | Array<string | object | NestedField> |
QueryBuilderOptionsβ
Key | Type |
---|---|
operation | string |
variables | VariableOptions |
fields | Array<string | object | NestedField> |
VariableOptionsβ
Key | Type |
---|---|
type? | string |
name? | string |
value? | any |
list? | bool |
required? | bool |
[k: string] | any |
PromptPropsβ
Key | Type |
---|---|
message | string |
when? | boolean |
setWarnWhen? | (warnWhen: boolean) => void |
CanParamsβ
Key | Type |
---|---|
resource | string |
action | string |
params? | { resource ?: IResourceItem, id ?: BaseKey, [key: string]: any } |
CanReturnTypeβ
Key | Type |
---|---|
can | boolean |
reason? | string |
LiveEventβ
Key | Type |
---|---|
channel | string |
type | "deleted" | "updated" | "created" | "* " | string |
payload | {ids?: BaseKey[]; [x: string]: any; } |
date | Date |
LiveModePropsβ
Key | Type |
---|---|
liveMode? | "auto" Β | "manual" | "off" |
liveParams? | {ids?: BaseKey[]; [x: string]: any; } |
onLiveEvent? | (event: LiveEvent) => void |
MetaPropsβ
Key | Type |
---|---|
label? | string |
icon? | React.ReactNode |
audit? | string[] |
parent?: | string |
dataProviderName? | string |
[key: string] | any |
ResourceItemPropsβ
Key | Type |
---|---|
name | string |
identifier? | string |
meta? | MetaProps |
SyncWithLocationParamsβ
Key | Type |
---|---|
pagination? | { current?: number; pageSize?: number } |
sorter? | CrudSorting |
filters? | CrudSCrudFiltersorting |
Open Notification Paramsβ
Key | Type |
---|---|
key? | string |
type | "success" Β | "error" | "progress" |
message | string |
description? | string |
cancelMutation? | () => void |
undoableTimeout? | number |
Close Notification Paramsβ
Key | Type |
---|---|
key | string |