-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 20 additions & 4 deletions
24
packages/devextreme/js/__internal/grids/new/grid_core/data_controller/options.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
import type { DataSourceLike } from '@js/data/data_source'; | ||
|
||
interface PagingOptions { | ||
enabled?: boolean; | ||
pageSize?: number; | ||
|
||
pageIndex?: number; | ||
} | ||
|
||
export interface Options { | ||
paging?: PagingOptions; | ||
interface RemoteOperationsOptions { | ||
filtering?: boolean; | ||
paging?: boolean; | ||
sorting?: boolean; | ||
summary?: boolean; | ||
} | ||
|
||
export interface Options { | ||
cacheEnabled?: boolean; | ||
dataSource?: DataSourceLike<unknown>; | ||
|
||
dateSerializationFormat?: string; | ||
keyExpr?: string | string[]; | ||
onDataErrorOccurred?: unknown; | ||
paging?: PagingOptions; | ||
remoteOperations?: RemoteOperationsOptions | boolean; | ||
} | ||
|
||
export const defaultOptions = { | ||
paging: { | ||
enabled: true, | ||
pageSize: 6, | ||
pageIndex: 0, | ||
}, | ||
remoteOperations: { | ||
filtering: false, | ||
paging: false, | ||
sorting: false, | ||
summary: false, | ||
}, | ||
} satisfies Options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters