@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
28 lines (27 loc) • 1.56 kB
TypeScript
import { EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
import { FilterEvent } from './events/filter-event';
import { FilterService } from './filter.service';
import { Filter } from './interfaces/filter.interface';
import * as i0 from "@angular/core";
export declare class FilterContainerComponent implements OnDestroy {
readonly filterService: FilterService;
/** Allow filters to set from outside the component */
set filters(filters: Filter[]);
/** Define the tooltip text */
clearTooltip: string;
/** Defines the aria-label for the clear all button */
clearAriaLabel: string;
/** Emit when the active filters chance */
filtersChange: EventEmitter<Filter[]>;
/** Emit when a specific event occurs */
events: EventEmitter<FilterEvent>;
/** Allow the content of the clear all button to be customized */
clearAllTemplate: TemplateRef<void>;
/** Unsubscribe from the subscriptions on destroy */
private readonly _onDestroy;
constructor();
/** Destroy all subscriptions */
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FilterContainerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FilterContainerComponent, "ux-filter-container", never, { "filters": { "alias": "filters"; "required": false; }; "clearTooltip": { "alias": "clearTooltip"; "required": false; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; }; }, { "filtersChange": "filtersChange"; "events": "events"; }, ["clearAllTemplate"], ["*"], false, never>;
}