ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
19 lines (18 loc) • 1.08 kB
TypeScript
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { PipeTransform, QueryList } from '@angular/core';
import { NzOptionGroupComponent } from './nz-option-group.component';
import { NzOptionComponent } from './nz-option.component';
export declare type TFilterOption = (input: string, option: NzOptionComponent) => boolean;
export declare class NzFilterOptionPipe implements PipeTransform {
transform(options: NzOptionComponent[] | QueryList<NzOptionComponent>, searchValue: string, filterOption: TFilterOption, serverSearch: boolean): NzOptionComponent[];
}
export declare class NzFilterGroupOptionPipe implements PipeTransform {
transform(groups: NzOptionGroupComponent[], searchValue: string, filterOption: TFilterOption, serverSearch: boolean): NzOptionGroupComponent[];
}
export declare function defaultFilterOption(searchValue: string, option: NzOptionComponent): boolean;