Skip to main content

defaultEditorShape

Description

An array of objects with default configuration parameters for the Editor dialog

Default config

const defaultEditorShape = [
{
key: "text",
type: "text",
label: "Name",
config: {
placeholder: "Add task name",
focus: true,
},
},
{
key: "details",
type: "textarea",
label: "Description",
config: {
placeholder: "Add description",
},
},
{
key: "type",
type: "select",
label: "Type",
},
{
key: "start",
type: "date",
label: "Start date",
},
{
key: "end",
type: "date",
label: "End date",
},
{
key: "duration",
type: "counter",
label: "Duration",
config: {
min: 1,
max: 100,
},
},
{
key: "progress",
type: "slider",
label: "Progress",
},
{
key: "links",
type: "links",
},
];

Parameters

The description of all parameters see here: editorShape

Related articles: