ngx-monitorias-uniandes-lib
Version:
This library is used for Monitorias-Uniandes system.
54 lines (53 loc) • 1.78 kB
TypeScript
import { OnInit, EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
import { FilterControlService } from './filter-control.service';
import { FormControl } from '@angular/forms';
import { Observable } from 'rxjs/Observable';
import { SearchComboBoxGenericLocalModel } from '../search-combo-box/search-combo-box-generic-local/search-combo-box-generic-local.model';
export declare class FilterControlComponent implements OnInit, OnChanges {
private _filterService;
filterInput: ElementRef;
filterField: string;
filterKey: string;
typeControl: string;
lastFilter: boolean;
clearInput: boolean;
lastFilterMobile: boolean;
listData: Array<{
label: string;
value: string;
}>;
onFilterRequest: EventEmitter<any>;
componentModelLocal: SearchComboBoxGenericLocalModel;
myControl: FormControl;
filteredOptions: Observable<Array<{
label: string;
value: string;
}>>;
constructor(_filterService: FilterControlService);
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
/**
* Prevent propagation of clicks
* @param event
*/
preventPropagation(event: Event): void;
/**
* Open filter selected and close the other ones
* @param filterToOpen
* * @fires @function openFilter of FilterService
*/
openFilter(): void;
/**
* Close filter selected
* @param filterToClose
* @fires @function closeFilter of FilterService
*/
closeFilter(): void;
/**
* Emit event when user type something
* From @event click
* @param filterInput
*/
emitFilterRequest(): void;
sendItemSelectedEvent(event: any): void;
}