@rangertechnologies/ngnxt
Version:
This library was used for creating dymanic UI based on the input JSON/data
54 lines (53 loc) • 2.04 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { I18nService } from '../../i18n.service';
import { Question } from '../../wrapper';
import { DataService } from '../../services/data.service';
import { Subscription } from 'rxjs';
import { ChangeService } from '../../services/change.service';
import * as i0 from "@angular/core";
export declare class CustomTableComponent implements OnInit {
private changeService;
i18nService: I18nService;
private dataService;
question: Question;
apiMeta: string;
valueChange: EventEmitter<any>;
tableHeader: any[];
tableData: any[];
filteredData: any[];
showAddRow: boolean;
showPagination: boolean;
showActions: boolean;
showSearch: boolean;
itemsPerPage: number;
addRowColSpan: number;
tableSize: number;
objName: any;
filterLogic: any;
fieldMeta: string;
firStr: string;
searchBox: boolean;
options: string[];
isDisabled: boolean;
subscription: Subscription;
searchTerm: string;
currentPage: number;
totalItems: number;
pages: number[];
Math: Math;
constructor(changeService: ChangeService, i18nService: I18nService, dataService: DataService);
ngOnInit(): void;
search(): void;
updatePagination(): void;
get paginatedData(): any[];
setPage(page: number): void;
addRow(): void;
updateRadio(item: any, value: string): void;
updateLabel(rowIndex: number, label: string, value: any): void;
deleteRow(rowIndex: number): void;
editRow(rowIndex: number): void;
updateNumber(item: any, label: string, value: string): void;
emitTableDataValue(updatedTableData: any[]): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTableComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "question": { "alias": "question"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
}