ui-grid
ui-grid copied to clipboard
How to resize expandable grid height once it's rendered?
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.
Use Stack Overflow or Gitter for questions.