Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Settings #73

Closed
creativtools opened this issue Dec 31, 2020 · 1 comment
Closed

Block Settings #73

creativtools opened this issue Dec 31, 2020 · 1 comment

Comments

@creativtools
Copy link

I've a block folder with a view.html and a config.php with the following code

return [
    'title' => 'Text',
    'category' => 'General',
    'icon' => 'fa fa-edit'
];

How to add block Settings?

image

Thanks

@Dontorpedo
Copy link

Dontorpedo commented Jan 5, 2021

just like this

return [
    "category" => "Formfields",
    "title" => "Textfield",
    "settings" => [
        "label" => [
            "type" => "text",
            "label" => "desc",
            "value" => "",
        ],
        "placeholder" => [
            "type" => "text",
            "label" => "placeholder",
            "value" => "",
        ],
        "label_hide" => [
            "type" => "checkbox",
            "label" => "hide label?",
            "value" => "0",
        ],
        "required" => [
            "type" => "yes_no",
            "label" => "required?",
            "value" => "0",
        ]
    ],

];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants