Table | add showButtons input to inputNumber in ColumnFilter #11881
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the feature you would like to see added
I would like to handle the [showButtons] attribute of the inputNumber (columnFilter).
According to current code you are setting the [showButtons] attribute always on true.
<p-inputNumber *ngSwitchCase="'numeric'" [ngModel]="filterConstraint?.value" (ngModelChange)="onModelChange($event)" (onKeyDown)="onNumericInputKeyDown($event)" [showButtons]="true" [minFractionDigits]="minFractionDigits" [maxFractionDigits]="maxFractionDigits" [prefix]="prefix" [suffix]="suffix" [placeholder]="placeholder" [mode]="currency ? 'currency' : 'decimal'" [locale]="locale" [localeMatcher]="localeMatcher" [currency]="currency" [currencyDisplay]="currencyDisplay" [useGrouping]="useGrouping"></p-inputNumber>
I don't want to see them so i want to handle this attribute.
Is your feature request related to a problem?
I am not able to control the [showButtons] attribute of columnFilter - inputNumber element.
Describe the solution you'd like
Instead of default [showButtons]="true" binding, there should be an Input() which controls this attribute.
@Input() showButtons: boolean
[showButtons]="showButtons"
<p-columnFilter *ngIf="header.filterType === NUMERIC" [type]="NUMERIC" [field]="header.filterField" [useGrouping]="false" [showButtons]="false" [showMenu]="false"> </p-columnFilter>
Describe alternatives you have considered
No response
Additional context
It would be nice, if this would be a feature for older versions to like up to 10? 12?
The text was updated successfully, but these errors were encountered: