diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 1231926c4df..343279b4a37 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4953,6 +4953,7 @@ export class ReorderableRow implements AfterViewInit { class="p-fluid" [type]="type" [field]="field" + [ariaLabel]="ariaLabel" [filterConstraint]="dt.filters[field]" [filterTemplate]="filterTemplate" [placeholder]="placeholder" @@ -5211,6 +5212,11 @@ export class ColumnFilter implements AfterContentInit { * @group Props */ @Input() showButtons: boolean = true; + /** + * Defines the aria-label of the form element. + * @group Props + */ + @Input() ariaLabel: string | undefined; @ViewChild('icon') icon: Nullable; @@ -5745,7 +5751,7 @@ export class ColumnFilter implements AfterContentInit { - + - - + + `, @@ -5803,6 +5810,8 @@ export class ColumnFilterFormElement implements OnInit { @Input() useGrouping: boolean = true; + @Input() ariaLabel: string | undefined; + get showButtons(): boolean { return this.colFilter.showButtons; } diff --git a/src/app/showcase/doc/table/filterrowdoc.ts b/src/app/showcase/doc/table/filterrowdoc.ts index 217bc54521c..e3551e91b4d 100644 --- a/src/app/showcase/doc/table/filterrowdoc.ts +++ b/src/app/showcase/doc/table/filterrowdoc.ts @@ -42,10 +42,10 @@ import { CustomerService } from '../../service/customerservice'; - + - +