ngx-mat-select-search
Version:
Angular component providing an input field for searching / filtering MatSelect options of the Angular Material library.
26 lines (25 loc) • 1.61 kB
TypeScript
import { InjectionToken } from '@angular/core';
import { MatSelectSearchComponent } from './mat-select-search.component';
/** List of inputs of NgxMatSelectSearchComponent that can be configured with a global default. */
export declare const configurableDefaultOptions: readonly ["ariaLabel", "clearSearchInput", "closeIcon", "closeSvgIcon", "disableInitialFocus", "disableScrollToActiveOnOptionsChanged", "enableClearOnEscapePressed", "hideClearSearchButton", "noEntriesFoundLabel", "placeholderLabel", "preventHomeEndKeyPropagation", "searching"];
export type ConfigurableDefaultOptions = typeof configurableDefaultOptions[number];
/**
* InjectionToken that can be used to specify global options. e.g.
*
* ```typescript
* providers: [
* {
* provide: MAT_SELECTSEARCH_DEFAULT_OPTIONS,
* useValue: <MatSelectSearchOptions>{
* closeIcon: 'delete',
* noEntriesFoundLabel: 'No options found'
* }
* }
* ]
* ```
*
* See the corresponding inputs of `MatSelectSearchComponent` for documentation.
*/
export declare const MAT_SELECTSEARCH_DEFAULT_OPTIONS: InjectionToken<Readonly<Partial<Pick<MatSelectSearchComponent, "ariaLabel" | "clearSearchInput" | "closeIcon" | "closeSvgIcon" | "disableInitialFocus" | "disableScrollToActiveOnOptionsChanged" | "enableClearOnEscapePressed" | "hideClearSearchButton" | "noEntriesFoundLabel" | "placeholderLabel" | "preventHomeEndKeyPropagation" | "searching">>>>;
/** Global configurable options for MatSelectSearch. */
export type MatSelectSearchOptions = Readonly<Partial<Pick<MatSelectSearchComponent, ConfigurableDefaultOptions>>>;