Content Projection into pButton in PrimeNg 10

UI Components for Angular
Post Reply
paulyip
Posts: 5
Joined: 12 Apr 2017, 07:53

03 Nov 2020, 17:00

In PrimeNg 9, I could center-align the content projected into a button? Does anybody know how this can be achieved in PrimeNg 10 ?

Code: Select all

<div class="ui-g ui-fluid" >
  <div class="ui-g-12">
    <button pButton>
      <div>Content</div>
      <i class="fa fa-home"></i>
    </button>
  </div>
</div>
Image

I already submitted an issue of having the &nbsp; rendered when the label is missing.
https://github.com/primefaces/primeng/issues/9482

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests