Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown: Possibility to change icon which is used as "clear". #12048

Closed
syncmaxim opened this issue Oct 14, 2022 · 1 comment
Closed

Dropdown: Possibility to change icon which is used as "clear". #12048

syncmaxim opened this issue Oct 14, 2022 · 1 comment
Labels
Type: New Feature Issue contains a new feature or new component request

Comments

@syncmaxim
Copy link

Describe the feature you would like to see added

User should be able to change default icon "pi pi-times" from primeicons which used as clear to another one. The same as for dropdown icon which is controlled with @Input() dropdownIcon: string = 'pi pi-chevron-down';.

Is your feature request related to a problem?

There is another icons font but it is not possible to apply it for clear control of dropdown.

Describe the solution you'd like

Add new field
@Input() clearIcon: string = 'pi pi-times';
and apply it
<i class="p-dropdown-clear-icon" (click)="clear($event)" *ngIf="isVisibleClearIcon" [ngClass]="clearIcon"></i> instead of
<i class="p-dropdown-clear-icon pi pi-times" (click)="clear($event)" *ngIf="isVisibleClearIcon"></i>

Describe alternatives you have considered

No response

Additional context

No response

@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented Mar 31, 2023

Hi,

this issue will be covered in #12839 , custom icons are in development.
Closing the issue, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants