commandbutton icon

UI Components for JSF
Post Reply
jelofka
Posts: 1
Joined: 11 Jul 2023, 14:36

11 Jul 2023, 14:46

Hi
Primefaces 12.0
I would like to display icon in commandbutton.

As per doc, I have

<p:commandButton icon="excel" />

in css I defined
.excel{
background-image: url(excel.png) !important;
}

But no icon on the button is displayed.
excel.png file is correctly placed, I tested it.

Any idea?
Many thanks
Kind regards
Matjaz

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

12 Jul 2023, 19:01

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 74 guests