Adding Class to ALL field values
Adding Class to ALL field values
menashe
Posts: 196Questions: 43Answers: 2
I know that className: ...
adds a class to the whole field.
And you've posted before that
editor.field('myField').input().addClass('myClass');
will add to 'myField'.
Is there an easy way to add the same class to all fields on the form? (Not the label, just the field value.)
Replies
To follow up, unless I am misunderstanding something, when you look under Elements in Dev Tools, the Editor labels--at the highest level--have a class "col-form-label".
But the Editor fields have only class "col-lg-8", which I didn't think was wise to modify.
What do you know? I was misunderstanding something!
I found https://datatables.net/forums/discussion/58758/custom-form-field-label-widths.