Hi all,
I want to now how can I get a badge for FAB component?
https://www.primefaces.org/showcase-ext ... ontent.jsf
Here a sample image what I need:
Use case:
For a chat widget to get new messages.
I would assume maybe with css, but I have currently not really an idea to get this.
Does anybody have an idea?
Thanks
FAB and badge?
Try this. Our latest showcase has this but it has not been published yet.
Code: Select all
<pe:fab id="btnFab" icon="fa fa-question" iconActive="fa fa-times" style="background: green;" widgetVar="fabWidget">
<pe:javascript event="open" execute="PF('overlayWidget').show('btnFab');"/>
<pe:javascript event="close" execute="PF('overlayWidget').hide();"/>
</pe:fab>
<pe:badge content="1" for="btnFab"/>
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
The CSS is not currently designed for Slideout.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
i can look but i think the CSS could be tricky to get it to stick to the slideout tab.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
I told you already the FAB already supports this but you said you wanted it on Slideout? Your screenshot has a FAB in it?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests