First see Grid list in AngularJS Material UI, There is no documentation over grid list directives. I didn't understand anything because of not having proper documentation. After reading whole material UI documentation, I just tried examples and understood the concept of grid-list.
Grid-list directives
md-cols | Sets Number of columns |
md-cols-sm | Sets Number of columns on devices less than 600px wide. |
md-cols-gt-sm | Sets Number of columns on devices greater than 600px wide. |
md-cols-md | Sets Number of columns on devices between 600px and 960px wide. |
md-cols-gt-md | Sets Number of columns on devices greater than 960px wide. |
md-cols-lg | Sets Number of columns on devices between 960px and 1200px wide. |
md-cols-gt-lg | Sets Number of columns on devices greater than 1200px wide. |
md-row-height | Sets row height ratio |
md-row-height-sm | Sets row height ratio on devices less than 600px wide. |
md-row-height-gt-sm | Sets row height ratio on devices greater than 600px wide. |
md-row-height-md | Sets row height ratio on devices between 600px and 960px wide. |
md-row-height-gt-md | Sets row height ratio on devices greater than 960px wide. |
md-row-height-lg | Sets row height ratio on devices between 960px and 1200px wide. |
md-row-height-gt-lg | Sets row height ratio on devices greater than 1200px wide. |
md-gutter | Sets Margin to grid |
md-gutter-sm | Sets Margin to grid on devices less than 600px wide. |
md-gutter-gt-sm | Sets Margin to grid on devices greater than 600px wide. |
md-gutter-md | Sets Margin to grid on devices between 600px and 960px wide. |
md-gutter-gt-md | Sets Margin to grid on devices greater than 960px wide. |
md-gutter-lg | Sets Margin to grid on devices between 960px and 1200px wide. |
md-gutter-gt-lg | Sets Margin to grid on devices greater than 1200px wide. |
md-colspan | Sets column size to grid |
md-colspan-sm | Sets column size to grid on devices less than 600px wide. |
md-colspan-gt-sm | Sets column size to grid on devices greater than 600px wide. |
md-colspan-md | Sets column size to grid on devices between 600px and 960px wide. |
md-colspan-gt-md | Sets column size to grid on devices greater than 960px wide. |
md-colspan-lg | Sets column size to grid on devices between 960px and 1200px wide. |
md-colspan-gt-lg | Sets column size to grid on devices greater than 1200px wide. |
md-rowspan | Sets row size to grid |
md-rowspan-sm | Sets row size to grid on devices less than 600px wide. |
md-rowspan-gt-sm | Sets row size to grid on devices greater than 600px wide. |
md-rowspan-md | Sets row size to grid on devices between 600px and 960px wide. |
md-rowspan-gt-md | Sets row size to grid on devices greater than 960px wide. |
md-rowspan-lg | Sets row size to grid on devices between 960px and 1200px wide. |
md-rowspan-gt-lg | Sets row size to grid on devices greater than 1200px wide. |
md-cols Example
This directive is for setting the number of columns in grid system. Observe below highlighted code. For mobile devices, l column will be there. For tablets 2 columns will be there. For desktops 3 columns will be there.
<md-grid-list md-cols-gt-md="3" md-cols-md="2" md-cols-sm="1" md-gutter="12px" md-row-height="1:1"> <md-grid-tile class="green"> <md-grid-tile-footer> <h3>first tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="blue"> <md-grid-tile-footer> <h3>second tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="purple"> <md-grid-tile-footer> <h3>third tile</h3> </md-grid-tile-footer> </md-grid-tile> </md-grid-list>
md-colspan Example
Here colspan is for setting width of the tile. Here I have given different sizes for below tiles for mobile, tablet, desktop
<md-grid-list md-cols-gt-md="9" md-cols-md="6" md-cols-sm="3" md-gutter="12px" md-row-height="1:1"> <md-grid-tile class="green" md-colspan-gt-md="6" md-colspan-md="4" md-colspan-sm="1"> <md-grid-tile-footer> <h3>first tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="blue" md-colspan-gt-md="2" md-colspan-md="1" md-colspan-sm="1"> <md-grid-tile-footer> <h3>second tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="purple" md-colspan-gt-md="1" md-colspan-md="1" md-colspan-sm="1"> <md-grid-tile-footer> <h3>third tile</h3> </md-grid-tile-footer> </md-grid-tile> </md-grid-list>
md-rowspan Example
Here rowspan is for setting height of the tile. Here I have given different sizes for below tiles for mobile, tablet, desktop
<md-grid-list md-cols="9" md-gutter="12px" md-row-height="1:1"> <md-grid-tile class="green" md-rowspan-gt-md="3" md-rowspan-md="2" md-rowspan-sm="2"> <md-grid-tile-footer> <h3>first tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="blue" md-rowspan-gt-md="2" md-rowspan-md="3" md-rowspan-sm="1"> <md-grid-tile-footer> <h3>second tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="purple" md-rowspan-gt-md="1" md-rowspan-md="1" md-rowspan-sm="3"> <md-grid-tile-footer> <h3>third tile</h3> </md-grid-tile-footer> </md-grid-tile> </md-grid-list>
md-gutter Example
This is for setting margin for grids. Here you can observe different margins for mobile, tablet, desktop views
<md-grid-list md-cols="3" md-gutter-gt-md="60px" md-gutter-md="30px" md-gutter-sm="2px" md-row-height="1:1"> <md-grid-tile class="green"> <md-grid-tile-footer> <h3>first tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="blue"> <md-grid-tile-footer> <h3>second tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="purple"> <md-grid-tile-footer> <h3>third tile</h3> </md-grid-tile-footer> </md-grid-tile> </md-grid-list>
md-row-height Example
This is the ratio of grid width and grid height. Here you can observe different ratios for mobile, tablet, desktop views
<md-grid-list md-cols="6" md-gutter="12px" md-row-height-gt-md="3:1" md-row-height-md="1:3" md-row-height-sm="1:1"> <md-grid-tile class="green"> <md-grid-tile-footer> <h3>first tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="blue"> <md-grid-tile-footer> <h3>second tile</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile class="purple"> <md-grid-tile-footer> <h3>third tile</h3> </md-grid-tile-footer> </md-grid-tile> </md-grid-list>
does this feature working on android 4.3 and below versions?
ReplyDeleteits not specific to android OS. It is on web and depends on browser
DeleteHello I want to display dynamic tiles.i.e height of tile not fixed because we are doing social Networking website height of post will be incremented dynamically
ReplyDeleteWasted so much time following this article , please refer https://material.angularjs.org/latest/layout/container
ReplyDeleteLayouts are different
good article on grid.
ReplyDeletethank u
ReplyDeletehow to display title content in next line.
ReplyDeletelike title1 title2
abc xyz
title3
123
The main cost funds would be on the off chance that you discovered a few pieces or did some rescue work yourself, you may spare a few expenses. For instance you may discover an exercise center floor or boards out of an animal dwellingplace barn that you need to nail down on your floor. flooring contractor in grants pass oregon
ReplyDeleteObviously, a little floor zone to be secured may just set aside a brief time of effort to finish while a bigger zone might be done after a more extended timespan. Chape
ReplyDeleteThis content is very good, very interesting. Thank you for a good website like this.
ReplyDeleteคาสิโนออนไลน์ที่น่าเชื่อถือและมีความเป็นมืออาชีพที่สุดในตอนนี้
โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
เพียงแค่คุณสมัคร สล็อตออนไลน์ กับทางทีมงานของเราเพียงเท่านั้น
ร่วมมาเป็นส่วนหนึ่งกับเว็บไซต์คาสิโนออนไลน์ของเราได้เลยค่ะ
สมัครสล็อตออนไลน์ >>> Goldenslot
สนใจร่วมสนุกกับ คาสิโนออนไลน์ คลิ๊กได้เลย
มีทั้งคาสิโนออนไลน์ หวยออนไลน์ ฟุตบอลออนไลน์ สล็อตออนไลน์ และอื่นๆอีกมากมาย
The Pandemic outbreak has caused too much trouble for the online buyers and big vendors like Amazon. During this Covid-19, Amazon is not the only e-commerce store suffering to increase their shopify app development sales, a majority of other web stores are testing their patience
ReplyDeletebajaj finance share price is now on good position
ReplyDeleteTata steel share price is now on good position.
ReplyDeleteIndira Securities secure login for Online market trading and portfolio management.
ReplyDeleteThe company offers open commodity trading account online and traders community which helps them save on brokerage.
ReplyDeleteIndira Trade Brokerage Calculator helps you to calculate the amount of delivery brokerage
ReplyDeletehelooooooooooooooooooooooooooooooooooooooooooooooooooooo
ReplyDelete