src/components/gridList/grid-list.js
function getTileSpans(tileElements) {
      return [].map.call(tileElements, function(ele) {
        var ctrl = angular.element(ele).controller('mdGridTile');
        return {
          row: parseInt(
              $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
          col: parseInt(
              $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
        };
      });
    }
function getTileSpans(tileElements) {
      return [].map.call(tileElements, function(ele) {
        var ctrl = angular.element(ele).controller('mdGridTile');
        return {
          row: parseInt(
              $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
          col: parseInt(
              $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
        };
      });
    }
function getTileSpans ( tileElements ) { return [ ] . map . call ( tileElements , function ( ele ) { var ctrl = angular . element ( ele ) . controller ( 'mdGridTile' ) ; return { row : parseInt ( $mdMedia . getResponsiveAttribute ( ctrl . $attrs , 'md-rowspan' ) , 10 ) || 1 , col : parseInt ( $mdMedia . getResponsiveAttribute ( ctrl . $attrs , 'md-colspan' ) , 10 ) || 1 } ; } ) ; }
Gets an array of objects containing the rowspan and colspan for each tile.
@returns {Array<{row: number, col: number}>}
Gets an array of objects containing the rowspan and colspan for each tile .