Announcement

Collapse
No announcement yet.

adding custom class to row

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • adding custom class to row

    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');
    }‚Äč
    Last edited by czcpf; 05-09-2024, 09:31 PM.
Working...
X