Back to topic list

Termination

Termination is adding information to data fields that is used exclusively by admin interface. You can specify all kinds of properties, such as types, limitations, hide/show things, remove frames, size the input fields and much more

Generaly, to use any termination, you prepend dollar sign -'$' and add termination property after a underscore. So if you have field name, you can hide it from admin by $name_hidden: true.

Example

This

{
    background_image: 'https://cdn.meme.am/instances/500x/66927624.jpg'
}

Gives you this

But what is much cooler is saying the background_image field is an image. Like this:

{
    $background_image_type: 'image',
    background_image: 'https://cdn.meme.am/instances/500x/66927624.jpg'
}

Check out the available types to choose from at List of admin control types

Back to topic list

Shout out to pexels and freepik