ducks.widgets.Widgets.ts Maven / Gradle / Ivy
The newest version!
import { ModelPrefix } from '../../core/datasource/const'
export type Widget = {
isInit: boolean
visible: boolean
fetch: string
disabled: boolean
isResolved: boolean
isFilterVisible: boolean
isActive: boolean
pageId: string | null
error: unknown
validation?: Record
id?: string
name?: string
datasource?: string
fetchOnInit?: boolean
className?: string
children?: string
modelId?: string
type?: string | null
dataProvider?: unknown
toolbar?: Record
paging?: Record
filter?: Record
table?: { textWrap: boolean, columns: Record }
form?: {
modelPrefix: ModelPrefix
[key: string]: unknown
}
fetchOnVisibility?: boolean
}
export type State = Record