Issue
I want to change the splitButton
dropdown icon in primeng version 17
I looked in the documentation of the splitButton
part, there is a feature called icon, I changed it, but the label part changed, I want to change this part that I show in the photo.
Solution
If you want to change the dropdown icon, you should use the dropdownicon
template
Example
<p-splitButton
label="Save"
icon="pi pi-plus"
(onClick)="save('info')"
[model]="items"
>
<ng-template pTemplate="dropdownicon">
<i class="pi pi-arrow-circle-down"></i>
</ng-template>
</p-splitButton>
For more details: please check: Dropdownicon templates
Answered By - truonghungit
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.