custom Fields attributes Key-values

Laraship QuestionsCategory: Questionscustom Fields attributes Key-values
jlam asked 5 years ago
can you explain what is the attributes Key and value used for inteh custom fields. i can not find any explaniation how and what this is used for. It might help me out or i might beable to utilize this if i knew what it was for. thanks,
2 Answers
laraship Staff answered 5 years ago


Custom Field attributes will be appended to the crontrol field for example if you want to add id, class , readonly , .. attributes

jlam replied 5 years ago

thanks for the answer, now i can make the textarea a wysiwyg, is there a way to the custom fields does not fall within a 3 column row and take up a full row, i am adding a few custom elements and want the form element to take on a full row but it is laying out within a 3 column row.

For anyone who wants to know how to make textarea a wysiwyg just add a attribute key of “class” with value “wysiwyg”

laraship Staff answered 5 years ago


You need to override the view and in the function and change the width of the custom field for example

{!! CoralsForm::customFields($role, 'col-md-12') !!}

will add the custom fields with full width.