flexacore-ui-dev
Version:
Universal UI Framework for CDN, React, Angular, Vue, Svelte with TypeScript support
43 lines (40 loc) • 1.16 kB
text/typescript
import { Component, Input, Output, EventEmitter, ContentChildren, QueryList, AfterContentInit } from '@angular/core';
export class FCFormGroupComponent {
label: string = '';
error: string = '';
help: string = '';
}
export class FCFormComponent {
layout: 'vertical' | 'horizontal' | 'inline' = 'vertical';
novalidate: boolean = true;
onSubmit = new EventEmitter<Event>();
get classes() {
return [
'fc-form',
`fc-form-${this.layout}`
];
}
}