import { Component, Inject, Input } from '@angular/core';
import { IgxToolbarToken } from './token';
import { OverlaySettings } from '../../services/overlay/utilities';
import { IgxIconComponent } from '../../icon/icon.component';
import { NgClass, NgIf } from '@angular/common';
import { IgxRippleDirective } from '../../directives/ripple/ripple.directive';
import { IgxButtonDirective } from '../../directives/button/button.directive';
/**
* Provides a pre-configured button to open the advanced filtering dialog of the grid.
*
*
* @igxModule IgxGridToolbarModule
* @igxParent IgxGridToolbarComponent
*
* @example
* ```html
*
* Custom text
* ```
*/
@Component({
selector: 'igx-grid-toolbar-advanced-filtering',
templateUrl: './grid-toolbar-advanced-filtering.component.html',
standalone: true,
imports: [IgxButtonDirective, IgxRippleDirective, NgClass, IgxIconComponent, NgIf]
})
export class IgxGridToolbarAdvancedFilteringComponent {
/**
* Returns the grid containing this component.
*/
public get grid() {
return this.toolbar.grid;
}
@Input()
public overlaySettings: OverlaySettings;
constructor( @Inject(IgxToolbarToken) private toolbar: IgxToolbarToken) { }
}