Login / Join
Angular Material Design GRID
submitted on 07/05/2015 by
Codicode
+ infos
Config
Embed
Share
Angular Material Design GRID
by
Codicode
AngularJs material design grid component example
Framework 1 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
Framework 2 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
+ Js file(s) :
//ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js //ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-animate.min.js //ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-aria.min.js //cdnjs.cloudflare.com/ajax/libs/angular-material/0.9.0/angular-material.min.js
+ Css file(s) :
//cdnjs.cloudflare.com/ajax/libs/angular-material/0.9.0/angular-material.min.css
Apply
Link :
Direct http link :
Fork button :
Html code :
Embed preview :
Copy the following html code to your page to embed the preview,
To include many previews on a single page, just repeat the first line.
You can change the width, height and border color (bcolor).
<div class="refork-widget" code="c6d" style="width:100%;height:200px;" bcolor="#ccc"></div>
<script type="text/javascript" src="//snippet.run/d/z.js"></script>
HTML
<div ng-app="myApp" ng-controller="myController"> <md-grid-list md-cols-sm="1" md-cols-md="2" md-cols-gt-md="6" md-row-height-gt-md="1:1" md-row-height="2:2" md-gutter="12px" md-gutter-gt-sm="5px" > <md-grid-tile style="background-color:grey;" md-rowspan="3" md-colspan="2" md-colspan-sm="1"> <md-grid-tile-footer> <h3>#1: (3r x 2c)</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile style="background-color:green;"> <div> My 1r x1c Box <br /><br /> Cool ... </div> <md-grid-tile-header> <h3>This is my header</h3> </md-grid-tile-header> <md-grid-tile-footer> <h3>This is my footer</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile style="background-color:yellow;"> <md-grid-tile-footer> <h3>#3: (1r x 1c)</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile style="background-color:blue;" md-rowspan="2"> <md-grid-tile-footer> <h3>#4: (2r x 1c)</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile style="background-color:red;" md-rowspan="2" md-colspan="2" md-colspan-sm="1"> <md-grid-tile-footer> <h3>#5: (2r x 2c)</h3> </md-grid-tile-footer> </md-grid-tile> <md-grid-tile style="background-color:green;" md-rowspan="2" > <md-grid-tile-footer> <h3>#6: (2r x 1c)</h3> </md-grid-tile-footer> </md-grid-tile> </md-grid-list> </div>
CSS
md-grid-tile{ font-size : 1.6em; vertical-align:top; text-align:left; }
Javascript
angular.module('myApp', ['ngMaterial']) .controller('myController', function($scope) {});
©2013 Copyright snippet.run
Privacy
-
Terms of use
-
About
-
Contact