Skip to content

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

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
appstringyesDjango app label that owns the model.
modelstringyesDjango model name used to resolve API endpoints and configuration.
variantstring"default"View variant key used to select the model configuration for this view.
formModelVariantstring"default"Variant key forwarded to the inner FormModel component.
classstring|array|object() => []CSS class(es) applied to the root element.
formPropsobject{}Extra props merged into the FormModel component, taking precedence over model-config defaults.
fieldPropsobject{}Extra props forwarded to every field component rendered inside the form.
widgetPropsobject{}Extra props forwarded to every widget component rendered inside the form.
submitFieldsarrayundefinedField names included in the create submission payload; falls back to the model config's submitFields.
redirectAfterstring"update"Named view to redirect to after a successful create submission.

Slots

NameScopedDescription
before-fieldsyes
form-level-chores
fieldsyes
after-fieldsyes
targetless-action-buttonyes
submit-buttonyes
form-confirm-dialog-warningsyes
warning-entryyes

Full slot reference

Events

form-object

form-context

Source

client/lib/views/ViewCreate.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2