control splitbutton list item width

Post Reply
Posts: 9
Joined: 12 Apr 2017, 22:39

24 May 2018, 21:18

I am managing to expand the dropdown content of a splitbutton but still not succeed. As default, the dropdown content will always have the same width of the button. Please any one give me some insight how to control the content panel width, for example dynamically according to the max width of its text items?


User avatar
Posts: 3496
Joined: 29 Jun 2013, 12:38

11 Jun 2018, 09:05

Did you try the following code?

Code: Select all

<p-splitButton  [menuStyle]="{'width':'auto'}" ... />

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests