Skip to content

Commit

Permalink
Merge pull request #12312 from ThoSap/fix-table-column-filter-form-el…
Browse files Browse the repository at this point in the history
…ement-context

Add additional properties to the ColumnFilterFormElement ngTemplateOutlet context
  • Loading branch information
cetincakiroglu authored Dec 29, 2022
2 parents dea5a89 + b4db20f commit 5fb21c0
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4827,7 +4827,29 @@ export class ColumnFilter implements AfterContentInit {
selector: 'p-columnFilterFormElement',
template: `
<ng-container *ngIf="filterTemplate; else builtInElement">
<ng-container *ngTemplateOutlet="filterTemplate; context: { $implicit: filterConstraint.value, filterCallback: filterCallback }"></ng-container>
<ng-container
*ngTemplateOutlet="
filterTemplate;
context: {
$implicit: filterConstraint.value,
filterCallback: filterCallback,
type: type,
field: field,
filterConstraint: filterConstraint,
placeholder: placeholder,
minFractionDigits: minFractionDigits,
maxFractionDigits: maxFractionDigits,
prefix: prefix,
suffix: suffix,
locale: locale,
localeMatcher: localeMatcher,
currency: currency,
currencyDisplay: currencyDisplay,
useGrouping: useGrouping,
showButtons: showButtons
}
"
></ng-container>
</ng-container>
<ng-template #builtInElement>
<ng-container [ngSwitch]="type">
Expand Down

0 comments on commit 5fb21c0

Please sign in to comment.