FAB and badge?

Community Driven Extensions Project
rider
Posts: 399
Joined: 05 Mar 2010, 13:17

07 Nov 2020, 17:10

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:
Image

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
Primefaces 8.0, WildFly 21

Melloware
Posts: 2291
Joined: 22 Apr 2013, 15:48

07 Nov 2020, 18:29

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 8.0.3 / PF Extensions 8.0.4

rider
Posts: 399
Joined: 05 Mar 2010, 13:17

07 Nov 2020, 22:58

my fault, sorry.
I mean for: pe:slideout
Primefaces 8.0, WildFly 21

Melloware
Posts: 2291
Joined: 22 Apr 2013, 15:48

08 Nov 2020, 16:46

The CSS is not currently designed for Slideout.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.3 / PF Extensions 8.0.4

rider
Posts: 399
Joined: 05 Mar 2010, 13:17

12 Nov 2020, 22:16

is there any opportunity to do this?
Primefaces 8.0, WildFly 21

Melloware
Posts: 2291
Joined: 22 Apr 2013, 15:48

12 Nov 2020, 22:23

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 8.0.3 / PF Extensions 8.0.4

rider
Posts: 399
Joined: 05 Mar 2010, 13:17

12 Nov 2020, 23:35

This would be very great
Primefaces 8.0, WildFly 21

rider
Posts: 399
Joined: 05 Mar 2010, 13:17

26 Nov 2020, 10:00

@Melloware:
did you had a chance to have a look into it?

To get an understanding:
I would like to have this, like in the screenshot on the right bottom side:
Image
Primefaces 8.0, WildFly 21

Melloware
Posts: 2291
Joined: 22 Apr 2013, 15:48

26 Nov 2020, 14:54

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 8.0.3 / PF Extensions 8.0.4

rider
Posts: 399
Joined: 05 Mar 2010, 13:17

26 Nov 2020, 14:56

No, I´m using Slideout
Primefaces 8.0, WildFly 21

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests