UNPKG

ionic-logging-viewer

Version:

Viewer component for logs written by ionic-logging-service

45 lines (44 loc) 1.63 kB
import { OnInit, OnDestroy } from "@angular/core"; import { LoggingService } from "ionic-logging-service"; import { LoggingViewerFilterService } from "../logging-viewer-filter.service"; import * as i0 from "@angular/core"; /** * Component for displaying the search bar for filtering the current logs. * * The component can be embedded in any web page using: * * &lt;ionic-logging-viewer-search placeholder="Search">&lt;/ionic-logging-viewer-search> */ export declare class LoggingViewerSearchComponent implements OnInit, OnDestroy { private loggingViewerFilterService; /** * Placeholder to be shown in the empty search bar. */ placeholder: string; /** * Current search value. */ search: string; private logger; private filterChangedSubscription; /** * Creates a new instance of the component. */ constructor(loggingService: LoggingService, loggingViewerFilterService: LoggingViewerFilterService); /** * Initialize the component. * * This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html). */ ngOnInit(): void; /** * Clean up. */ ngOnDestroy(): void; /** * Callback when the search value was changed in the UI. */ onSearchChanged(): void; static ɵfac: i0.ɵɵFactoryDeclaration<LoggingViewerSearchComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LoggingViewerSearchComponent, "ionic-logging-viewer-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>; }