-
Notifications
You must be signed in to change notification settings - Fork 3
/
OtherOptions.ts
39 lines (31 loc) · 864 Bytes
/
OtherOptions.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import type { ReactNode } from 'react'
/** Type interface for loading options.
* @category Options */
export interface LoadingOptions {
/** Loading state.
* @default false */
loading?: boolean
/** If true, loading is done in background.
* Loading indicator is not shown if there is data on screen.
* @default true */
backgroundLoading?: boolean
/** Loading status is shown in status bar.
* @default true */
showLoadingStatus?: boolean
// ----------
// Components
/** Component rendered during loading.
* @default Spinner
* @category Custom Component */
Component?: ReactNode
}
/** Type interface for setting header/footer freeze.
* @category Options */
export interface FreezeOptions {
/** @default true */
columns?: boolean
/** @default true */
header?: boolean
/** @default true */
footer?: boolean
}