OpenSlides/client/src/app/shared/components/grid-layout/grid-layout.component.ts
GabrielMeyer 39d891f851 Adds a new view with tiles to the motion-list
- New components 'Tile' and 'GridLayout'
- Adds a grid-layout to the view
- The grid-layout can have an optional title section
2019-05-27 16:17:23 +02:00

26 lines
599 B
TypeScript

import { Component, Input } from '@angular/core';
/**
* Component to create a `grid-layout`.
* Aligns items in a flex display.
*/
@Component({
selector: 'os-grid-layout',
templateUrl: './grid-layout.component.html',
styleUrls: ['./grid-layout.component.scss']
})
export class GridLayoutComponent {
/**
* Property for an optional title.
*/
@Input()
public title: string;
/**
* If the grid layout should have no space.
* This contains the padding for the grid itself and the margin of the tiles.
*/
@Input()
public noSpace: boolean;
}