Open evil-shrike opened 7 years ago
Any progress on this? I'm still lookin for an answer to this question. Also, it is somehow possible to the grid "auto wrap", e.g. if you have 6x cells that each are span 4, it would wrap into two lines?
I'm not too familiar with Layout Grid, but I believe you can just add more cells, and they will wrap automatically:
<div class="mdc-layout-grid">
<div class="mdc-layout-grid__inner">
<div class="mdc-layout-grid__cell">4</div>
<div class="mdc-layout-grid__cell">4</div>
<div class="mdc-layout-grid__cell">4</div>
<div class="mdc-layout-grid__cell">4</div>
<div class="mdc-layout-grid__cell">4</div>
<div class="mdc-layout-grid__cell">4</div>
</div>
</div>
The above markup gets rendered as two rows:
We should probably update our docs and examples to reflect this.
In all samples in docs and the catalog there's only a single row always:
It's not obvious how to add a next row if it's supported at all: should I add a next
mdc-layout-grid__inner
under samemdc-layout-grid
(yes, it woks)?Or only add another
mdc-layout-grid
:?