sohelamin / crud-generator

Laravel CRUD Generator
https://packagist.org/packages/appzcoder/crud-generator
MIT License
1.41k stars 426 forks source link

Setting options for radio using json file #225

Closed saberhossain closed 6 years ago

saberhossain commented 6 years ago

Hi,

I am trying to create the fields by using a json file.

I want to add some radio options for a field called category. I tried to edit the demo json and edit in following way.

        {
            "name": "category",
            "type": "radio",
            "options": {
                "technology": "Technology",
                "tips": "Tips",
                "health": "Health"
            }
        },

Though it created a field called category. but instead of showing the options provided in json file, it's showing two radio button for yes and no.

How can I add a radio button for these three options?

Thanks in advance.

sohelamin commented 6 years ago

@saberhossain For now it supports 2 options in a radio field. Use select instead of radio now.