All files / src/components/zd-layout layout.ts

100% Statements 11/11
100% Branches 0/0
100% Functions 1/1
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2193x     93x 2x   2x   2x   2x     2x 2x 2x 2x 2x      
import { ComponentRender } from '../zd-component/component-render';
import { ILayout } from './interfaces';
 
export class Layout extends ComponentRender implements ILayout {
	public fullHeight? = false;
 
	public scrollable? = false;
 
	public tag?: string = 'main';
 
	public height: string | number = '100%';
 
	constructor(props: ILayout) {
		super(props);
		this.fullHeight = this.getInitValue('fullHeight', props.fullHeight, this.fullHeight);
		this.scrollable = this.getInitValue('scrollable', props.scrollable, this.scrollable);
		this.tag = this.getInitValue('tag', props.tag, this.tag);
		this.height = this.getInitValue('height', props.height, this.height);
	}
}