You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if i have a large screen resolution the max cols is 3 but when it is resize to smaller resolution i need to make it as 2 cols
is there a way to do that ?
i tried this code but it didn't work @HostListener('window:resize', ['$event']) onResize() { const width = window.innerWidth; if (width < 1500) { this.options.maxCols = 2; } else { this.options.maxCols = 3; this.options.maxRows = 12; } if (this.options.api && this.options.api.optionsChanged) { this.options.api.optionsChanged();\ } }
The text was updated successfully, but these errors were encountered:
MoeMhanna
changed the title
updating the layout List
getting the updated layout List when gridItem changed
Jan 20, 2024
MoeMhanna
changed the title
getting the updated layout List when gridItem changed
is there a way to change grid matrix?
Jan 22, 2024
if i have a large screen resolution the max cols is 3 but when it is resize to smaller resolution i need to make it as 2 cols
is there a way to do that ?
i tried this code but it didn't work
@HostListener('window:resize', ['$event']) onResize() { const width = window.innerWidth; if (width < 1500) { this.options.maxCols = 2; } else { this.options.maxCols = 3; this.options.maxRows = 12; } if (this.options.api && this.options.api.optionsChanged) { this.options.api.optionsChanged();\ } }
The text was updated successfully, but these errors were encountered: