UNPKG

angular-formio-gp

Version:

A fork of Form.io Angular JSON Form Renderer ========================== This library serves as a Dynamic JSON Powered Form rendering library for [Angular](https://angular.io). This works by providing a JSON schema to a ```<formio>``` Angular component,

52 lines (51 loc) 1.9 kB
import { EventEmitter, OnInit, AfterViewInit, OnChanges, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; import { FormioLoader } from '../components/loader/formio.loader'; import { FormioAlerts } from '../components/alerts/formio.alerts'; import { Formio } from 'formiojs-gp'; import { GridHeaderComponent } from './GridHeaderComponent'; import { GridBodyComponent } from './GridBodyComponent'; import { GridFooterComponent } from './GridFooterComponent'; export declare class FormioGridComponent implements OnChanges, OnInit, AfterViewInit { loader: FormioLoader; alerts: FormioAlerts; private resolver; private ref; src?: string; items?: Array<any>; onForm?: Promise<any>; query?: any; refresh?: EventEmitter<object>; gridType?: string; size?: number; components?: any; formio?: Formio; createText: String; isActionAllowed: any; select: EventEmitter<object>; rowSelect: EventEmitter<object>; rowAction: EventEmitter<object>; createItem: EventEmitter<any>; error: EventEmitter<any>; headerElement: ViewContainerRef; bodyElement: ViewContainerRef; footerElement: ViewContainerRef; page: number; isLoading: boolean; initialized: boolean; header: GridHeaderComponent; body: GridBodyComponent; footer: GridFooterComponent; constructor(loader: FormioLoader, alerts: FormioAlerts, resolver: ComponentFactoryResolver, ref: ChangeDetectorRef); createComponent(property: any, component: any): any; loadGrid(src?: string): void; ngOnInit(): void; ngOnChanges(changes: any): void; ngAfterViewInit(): void; loading: boolean; actionAllowed(action: any): any; onError(error: any): void; refreshGrid(query?: any): void; setPage(num?: number): void; sortColumn(header: any): void; pageChanged(page: any): void; }