Back to topic list

List of admin control types

What are control types?

Well, as you might already know, enduro provides a sweet admin ui. Control types are a way for you to tell enduro what value to expect. For example, there is a date control, which offer user an enhanced experience when a date is expected.

Currently these controls are available in enduro by default:

auto-detected types

Textfield

something: 'text is here'

Textfield is the default control.

Object

something : {
    something_else: ''
}

Array

something : [
    { label: "first" },
    { label: "second" },
]

Array control allows to add and remove items

Set by type termination

Image

$image_type : 'image'

Nice, full-featured image uploading control will let you drag in, copy/paste or just browse for an image. Fully compatible with your choice of remote file storage(such as aws s3).

File

$resume_type : 'file'

Simple file uploading control that lets you drag and drop files.

Textarea

$text_type : 'textarea'

Simply textarea to input longer blocks of text.

Slider

$value_type : 'slider'

Creates input slider that goes from 0 to 100 by default.

Colorpicker

$color_type : 'colorpicker'

Standard browser's colorpicker that outputs hex color code.

Title

$title_type : 'title'

Creates header out of the property's value. Property will be non-editable though

Date

$published_on_type : 'date'

Creates datepicker.

Time

$foo_time_type : 'time'

Creates time selection dropdown.

Back to topic list

Shout out to pexels and freepik