import { EventEmitter, OnInit } from '@angular/core'; export interface SortProp { key: string; label: string; } /** * A component with a list of properties to sort a list by one of them. * It can be used together with the DspSortBy pipe. */ export declare class SortButtonComponent implements OnInit { /** * @param sortProps[] * An array of SortProp objects for the selection menu: * SortProp: { key: string, label: string } */ sortProps: SortProp[]; /** * @param position string * Optional position of the sort menu: right or left * e.g. [position='left'] */ position: 'left' | 'right'; /** * @param icon * Default icon is "sort" from material design. * But you can replace it with another one * e.g. sort_by_alpha */ icon: string; /** * @param activeKey * Optional parameter: selected sort property key * By default it takes the first key from sortProps */ activeKey?: string; /** * @emits {string} sortKeyChange * * EventEmitter when a user selected a sort property; * This is the selected key */ sortKeyChange: EventEmitter; menuXPos: 'before' | 'after'; constructor(); ngOnInit(): void; /** * @ignore * * @param key a string to sort by */ sortBy(key: string): void; }