igniteui-angular-sovn
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
54 lines (47 loc) • 1.48 kB
text/typescript
import { Component, Input } from '@angular/core';
import { IQueryBuilderResourceStrings } from '../core/i18n/query-builder-resources';
import { CurrentResourceStrings } from '../core/i18n/resources';
import { NgIf } from '@angular/common';
({
selector: 'igx-query-builder-header',
templateUrl: 'query-builder-header.component.html',
standalone: true,
imports: [NgIf]
})
export class IgxQueryBuilderHeaderComponent {
private _resourceStrings = CurrentResourceStrings.QueryBuilderResStrings;
/**
* An @Input property that sets the title of the `IgxQueryBuilderHeaderComponent`.
*
* @example
* ```html
* <igx-query-builder-header title="Sample Query Builder"></igx-query-builder-header>
* ```
*/
()
public title: string;
/**
* An @Input property to show/hide the legend.
*
* @example
* ```html
* <igx-query-builder-header [showLegend]="false"></igx-query-builder-header>
* ```
*/
()
public showLegend = true;
/**
* Sets the resource strings.
* By default it uses EN resources.
*/
()
public set resourceStrings(value: IQueryBuilderResourceStrings) {
this._resourceStrings = Object.assign({}, this._resourceStrings, value);
}
/**
* Returns the resource strings.
*/
public get resourceStrings(): IQueryBuilderResourceStrings {
return this._resourceStrings;
}
}