Piumi ganegoda
Piumi ganegoda

Reputation: 193

PrimeNG split-button styles

I want to have a button like below.

enter image description here

When I use the PrimeNG split-button this is what I get

enter image description here

How can I change that to the button like in the first image? and I want to use it in a table

Upvotes: 1

Views: 3022

Answers (1)

Antikhippe
Antikhippe

Reputation: 6655

Maybe you can use PrimeNG menu to do that:

<button type="button" pButton pRipple icon="pi pi-plus" (click)="menu.toggle($event)"></button>
<p-menu #menu [popup]="true" [model]="items"></p-menu>

See stackblitz

Upvotes: 2

Related Questions