Editors
Configuring the editor of a collection in Konstrukt, the back office UI builder for Umbraco.
Last updated
Configuring the editor of a collection in Konstrukt, the back office UI builder for Umbraco.
Last updated
An editor is the user interface used to edit an entity and is made up of tabs and property editors.
Accesses the editor config of the given collection.
Adds a tab to the editor.
A slidebar is a smaller area that is displayed to the right of the main editor. The sidebar can also contain fieldsets and fields in the same way tabs can but with a much more limited display area so you'll need to choose your field types carefully. The sidebar is a great location to display entity metadata.
Configures the sidebar for the tab.
Sets the runtime visibility of the tab.
Adds the given fieldset to the tab.
Sets the runtime visibility of the fieldset.
Adds the given property to the editor.
By default Konstrukt will build the label from the property name, including splitting camel case names into sentence case, however you can set an explicit label if you'd prefer.
Sets the label for the editor field.
Sometimes you may have a field editor that would work better in full width, in which case you can achieve this by explicitly hiding the fields label.
Hides the label for the editor field.
Sets the description for the editor field.
By default Konstrukt will automatically choose a relevant data type for simple field types, however you can override this should you wish to use an alternative data type.
Set the data type of the current field to the Umbraco data type with the given name.
Set the data type of the current field to the Umbraco data type with the given id.
Sets the default value to a known constant.
Sets the default value via a function that gets evaluated at time of entity creation.
Makes the given field required.
Defines the regular expression to use when validating the field.
Makes the current field read only disabling editing in the UI.
Makes the current field read only disabling editing in the UI. Provides a custom formatting expression to use when rendering the value as a string.
Makes the current field read only disabling editing in the UI. Provides the name or id of a datatype to use when in readonly mode.
Makes the current field read only disabling editing in the UI if the given runtime predicate is true.
Makes the current field read only disabling editing in the UI if the given runtime predicate is true. Provides a custom formatting expression to use when rendering the value as a string.
Makes the current field read only disabling editing in the UI if the given runtime predicate is true. Provides the name or id of a datatype to use when in readonly mode.
Sets the runtime visibility of the field.
The editor configuration is a sub configuration of a config builder instance and is accessing via it's Editor
method.