mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-12 03:21:37 +00:00
26 lines
619 B
TypeScript
Executable File
26 lines
619 B
TypeScript
Executable File
import {Component} from '@angular/core';
|
|
|
|
export interface Tile {
|
|
color: string;
|
|
cols: number;
|
|
rows: number;
|
|
text: string;
|
|
}
|
|
|
|
/**
|
|
* @title Dynamic grid-list
|
|
*/
|
|
@Component({
|
|
selector: 'grid-list-dynamic-example',
|
|
templateUrl: 'grid-list-dynamic-example.html',
|
|
styleUrls: ['grid-list-dynamic-example.css'],
|
|
})
|
|
export class GridListDynamicExample {
|
|
tiles: Tile[] = [
|
|
{text: 'One', cols: 3, rows: 1, color: 'lightblue'},
|
|
{text: 'Two', cols: 1, rows: 2, color: 'lightgreen'},
|
|
{text: 'Three', cols: 1, rows: 1, color: 'lightpink'},
|
|
{text: 'Four', cols: 2, rows: 1, color: '#DDBDF1'},
|
|
];
|
|
}
|