A
A
Alena Khrenovskaya2018-05-11 10:22:42
JavaScript
Alena Khrenovskaya, 2018-05-11 10:22:42

Angular-material and dynamically changing columns in gridlist?

Good afternoon!
There is such a page with mat-grid-list. It is necessary that when opening sidenav, the number of columns changes from 4 to 3.
Components (jobs and contracts) are loaded via routing. And yes. I'm a complete noob in layout -_-
5af54483bf13f206659852.jpeg5af5449e30fe0700412098.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-05-11
@ally69

And what's the problem? Get a variable that is responsible for the number of columns, bind it to your mat-grid-list as the value of the cols parameter, and change it as you need there. Approximately so .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question