@pepperi/components
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.1.
37 lines (29 loc) • 1.17 kB
text/typescript
import { Component, Input, OnInit, ChangeDetectionStrategy, Renderer2, ElementRef } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { LAYOUT_TYPE, CustomizationService } from '@pepperi/lib';
export class PepperiSeparatorComponent implements OnInit {
key: string = '';
label: string = '';
xAlignment: string = '0';
controlType = 'separator';
form: FormGroup = null;
layoutType: LAYOUT_TYPE = LAYOUT_TYPE.PepperiForm;
LAYOUT_TYPE = LAYOUT_TYPE;
standAlone = false;
constructor(
public customizationService: CustomizationService,
private renderer: Renderer2,
public _eref: ElementRef) { }
ngOnInit() {
if (this.form === null) {
this.standAlone = true;
this.renderer.addClass(this._eref.nativeElement, CustomizationService.STAND_ALONE_FIELD_CLASS_NAME);
}
}
}