Skip to content

ViewCreateOptions ​

Overview ​

Required identification.

Properties ​

app ​

Django app label that owns the model.

Type: string

Source: client/lib/use/useViewCreate.js:84

expand ​

Relations that the form renders as inline fieldsets. Replaces the model config list.

Type: string[]

Source: client/lib/use/useViewCreate.js:94

expandDetails ​

Map of expand paths to detail overrides.

Type: any

Source: client/lib/use/useViewCreate.js:95

fetchFields ​

Field names the server returns in the create response; overrides the model config default when non-empty.

Type: string[]

Source: client/lib/use/useViewCreate.js:89

fieldComponents ​

Map of field paths to field component overrides.

Type: any

Source: client/lib/use/useViewCreate.js:96

fieldDetails ​

Map of field paths to field detail overrides.

Type: any

Source: client/lib/use/useViewCreate.js:93

fieldProps ​

Map of field paths to props for each field component.

Type: any

Source: client/lib/use/useViewCreate.js:98

fields ​

Field names that the form renders. Replaces the model config list.

Type: string[]

Source: client/lib/use/useViewCreate.js:92

formModelVariant ​

Theme variant that the FormModel component receives as variant.

Type: string

Source: client/lib/use/useViewCreate.js:100

formProps ​

Extra props for the FormModel component. They win over the model config's formProps and lose to the form props below. The app, model, and view keys are ignored, because the view sets them.

Type: any

Source: client/lib/use/useViewCreate.js:91

model ​

Django model name.

Optional form overrides.

Type: string

Source: client/lib/use/useViewCreate.js:85

redirectAfter ​

Named view to redirect to after a successful create.

Type: "list" | "update" | "read"

Source: client/lib/use/useViewCreate.js:90

submitFields ​

Field paths sent in the create request body; overrides the model config default when non-empty.

Type: string[]

Source: client/lib/use/useViewCreate.js:88

widgetComponents ​

Map of field paths to widget component overrides.

Type: any

Source: client/lib/use/useViewCreate.js:97

widgetProps ​

Map of field paths to props for each widget component.

Type: any

Source: client/lib/use/useViewCreate.js:99

Source ​

client/lib/use/useViewCreate.js:81