How do you add a class to the row that holds fields in layout manager? I can add class to the panel but not on an individual row. Any solution?


A little background, The row holding my two fields, I want to align the field div's that get generated inside it to bottom using css like this..

Code:
@media (min-width: 768px) { .row-fluid-align-bottom { display: flex; align-items: flex-end; }

I ended up doing it like this inside of a dynamic handler I was already using for this entity but curious if someone knows an easier way...

Code:
//fix alignment on row containing myFieldName
if (this.recordView.mode === 'edit' || this.recordView.mode === 'detail') {
    this.recordView.getFieldView('myFieldName')
        .$el.closest('div.row').addClass('row-fluid-align-bottom');
}‚Äč