ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

How to resize expandable grid height once it's rendered?

Open sohamnotes opened this issue 9 years ago • 1 comments

I have a ui-grid table with expandable feature using ui-grid-expandable.

index.js

this.$onInit = function() {
   this.subGridHeight = 1100;
}
this.grid = {
   expandableRowHeight: this.subGridHeight,
}

//depending on some condition I'm trying to change expandable row height which is not working

this.setSubGridHeight = (active) => {
    // I tried both the ways
    this.grid.expandableRowHeight = active === true : 1100 ? 160;
    this.subGridHeight = active === true : 1100 ? 160;;
  };

I'm trying this because we have few divs which can be minimised if minimised the expandable grid height should be 160px and if maximised the expandable grid height should be 1100px.

sohamnotes avatar Sep 01 '17 12:09 sohamnotes

Use Stack Overflow or Gitter for questions.

mportuga avatar Mar 29 '18 03:03 mportuga