ViewCreate
Overview
Form view for creating a new model instance, including a page title, a sticky submit button bar, and a FormModel that renders the configured fields.
Theme entry: ViewCreate
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| themeOverride | String|Object|Array | null | A partial theme object merged with the component's default theme; accepts a class string, class array, or theme object. | |
| app | string | yes | Django app label that owns the model. | |
| model | string | yes | Django model name used to resolve API endpoints and configuration. | |
| variant | string | "default" | View variant key used to select the model configuration for this view. | |
| formModelVariant | string | "default" | Variant key forwarded to the inner FormModel component. | |
| class | string|array|object | () => [] | CSS class(es) applied to the root element. | |
| formProps | object | {} | Extra props merged into the FormModel component, taking precedence over model-config defaults. | |
| fieldProps | object | {} | Extra props forwarded to every field component rendered inside the form. | |
| widgetProps | object | {} | Extra props forwarded to every widget component rendered inside the form. | |
| submitFields | array | undefined | Field names included in the create submission payload; falls back to the model config's submitFields. | |
| redirectAfter | string | "update" | Named view to redirect to after a successful create submission. |
Slots
| Name | Scoped | Description |
|---|---|---|
before-fields | yes | |
form-level-chores | ||
fields | yes | |
after-fields | yes | |
targetless-action-button | yes | |
submit-button | yes | |
form-confirm-dialog-warnings | yes | |
warning-entry | yes |
Events
form-object
form-context
Source
client/lib/views/ViewCreate.vue