@@ -35,26 +35,29 @@ const MD_FIT_MODE = 'fit';
3535} )
3636export class MdGridList implements OnInit , AfterContentChecked {
3737 /** Number of columns being rendered. */
38- _cols : number ;
38+ private _cols : number ;
3939
40- /** Row height value passed in by user. This can be one of three types:
40+ /**
41+ * Row height value passed in by user. This can be one of three types:
4142 * - Number value (ex: "100px"): sets a fixed row height to that value
4243 * - Ratio value (ex: "4:3"): sets the row height based on width:height ratio
4344 * - "Fit" mode (ex: "fit"): sets the row height to total height divided by number of rows
44- * * /
45- _rowHeight : string ;
45+ */
46+ private _rowHeight : string ;
4647
4748 /** The amount of space between tiles. This will be something like '5px' or '2em'. */
48- _gutter : string = '1px' ;
49+ private _gutter : string = '1px' ;
4950
5051 /** Sets position and size styles for a tile */
51- _tileStyler : TileStyler ;
52+ private _tileStyler : TileStyler ;
5253
5354 /** Query list of tiles that are being rendered. */
54- @ContentChildren ( MdGridTile ) _tiles : QueryList < MdGridTile > ;
55+ @ContentChildren ( MdGridTile ) private _tiles : QueryList < MdGridTile > ;
5556
56- constructor ( private _renderer : Renderer , private _element : ElementRef ,
57- private _dir : Dir ) { }
57+ constructor (
58+ private _renderer : Renderer ,
59+ private _element : ElementRef ,
60+ private _dir : Dir ) { }
5861
5962 @Input ( )
6063 get cols ( ) {
@@ -81,13 +84,17 @@ export class MdGridList implements OnInit, AfterContentChecked {
8184 this . _setTileStyler ( ) ;
8285 }
8386
87+ /** @internal */
8488 ngOnInit ( ) {
8589 this . _checkCols ( ) ;
8690 this . _checkRowHeight ( ) ;
8791 }
8892
89- /** The layout calculation is fairly cheap if nothing changes, so there's little cost
90- * to run it frequently. */
93+ /**
94+ * The layout calculation is fairly cheap if nothing changes, so there's little cost
95+ * to run it frequently.
96+ * @internal
97+ */
9198 ngAfterContentChecked ( ) {
9299 this . _layoutTiles ( ) ;
93100 }
@@ -131,8 +138,9 @@ export class MdGridList implements OnInit, AfterContentChecked {
131138 this . setListStyle ( this . _tileStyler . getComputedHeight ( ) ) ;
132139 }
133140
134- /** Sets style on the main grid-list element, given the style name and value.
135- * @internal
141+ /**
142+ * Sets style on the main grid-list element, given the style name and value.
143+ * @internal
136144 */
137145 setListStyle ( style : [ string , string ] ) : void {
138146 if ( style ) {
@@ -141,14 +149,16 @@ export class MdGridList implements OnInit, AfterContentChecked {
141149 }
142150}
143151
144- /** Converts values into strings. Falsy values become empty strings.
152+ /**
153+ * Converts values into strings. Falsy values become empty strings.
145154 * @internal
146155 */
147156export function coerceToString ( value : string | number ) : string {
148157 return `${ value || '' } ` ;
149158}
150159
151- /** Converts a value that might be a string into a number.
160+ /**
161+ * Converts a value that might be a string into a number.
152162 * @internal
153163 */
154164export function coerceToNumber ( value : string | number ) : number {
0 commit comments