diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index a0187193892..aaf9466bd28 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4945,6 +4945,7 @@ export class ReorderableRow implements AfterViewInit { class="p-fluid" [type]="type" [field]="field" + [ariaLabel]="ariaLabel" [filterConstraint]="dt.filters[field]" [filterTemplate]="filterTemplate" [placeholder]="placeholder" @@ -5203,6 +5204,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; @@ -5735,7 +5741,7 @@ export class ColumnFilter implements AfterContentInit { - + - - + + `, @@ -5793,6 +5800,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'; - + - +