<?php

    return [
        "type"           => "simpleRow",
        "model"          => App\Models\SimpleRow::class,
        "label"          => "Rows",
        "label_singular" => "Row",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "none",
        "order"          => FALSE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,

        "search" => [
            "fields" => [
                "block_title",
            ],
            "parentRelationships" => [
                "api",
            ]
        ],

        "fields"         => [
            [
                "name"          => "title",
                "label"         => "title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "block_title",
                "label"         => "Text",
                "type"          => "editor",
                "maxLength"     => 800,
                "multiLanguage" => TRUE,
                "preValidation" => "xss_clean",
                "validation"    => "htmlMax:800",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "style",
                "label"         => "Row style",
                "type"          => "selectBox",
                "list"          => [
                    1     => "none",
                    2     => "Green check",
                ],
                "defaultValue" => 1,
                "preValidation" => "trim",
                "placement"     => "sidebar",
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete"
        ]
    ];
