0

I am setting up an inventory app using the Voyager library, and want to add input classes for specific fields from $row->field. How to set it up in the edit-add blade file?

Helenesh
  • 3,999
  • 2
  • 21
  • 36
Niyaz
  • 733
  • 2
  • 8
  • 17
  • I could able to fix through javascript. Any other solutions please update. Thanks. – Niyaz Jan 25 '19 at 06:58
  • if you have specific needs you can ovverride any view as here `add-edit.blade.php` of particular modules. take a look at [voyager doc ovverriding files](https://voyager-docs.devdojo.com/customization/overriding-files) – Haritsinh Gohil Nov 20 '19 at 12:56

1 Answers1

1

unfortunately it's not possible to add classes to BREAD fields yet. but actually there is an alternative way to achieve what you willing:

you can add an ID to field's container using BREAD display option

just goto bread > MODEL > edit > ATTRIBUTE and change its option details to

{
    "display": {
        "width": "3",
        "id": "custom_id"
    }
}

click Submit and it's done.

Haritsinh Gohil
  • 5,818
  • 48
  • 50
Mojtaba Hn
  • 457
  • 2
  • 10