New component pe:statusBar

Community Driven Extensions Project
cagatay.civici
Prime
Posts: 18141
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Jun 2012, 16:12

Prime style!

User avatar
Oleg
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Jun 2012, 16:10

Hi Cagatay,

Any news here for tooltip on p:progressBar?

Also this issue is not solved viewtopic.php?f=3&t=22439 What we need is a "toogle button" changing text on toogle. <p:toogleButton ... like a normal button ... + firstLabel="..." secondLabel="..."/> I would take p:selectBooleanButton, but it looks different for both (yes / no) states. An additional attr. for styling p:selectBooleanButton as a normal button would be great.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18141
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Jun 2012, 16:45

I couldn't work on these due to lack of time, in my todo/review list.

So you don't want the active style visuals when yes is clicked?

User avatar
Oleg
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Jun 2012, 17:15

I couldn't work on these due to lack of time, in my todo/review list.
Sorry for my impatience. Ok.
So you don't want the active style visuals when yes is clicked?
Yes, exactly. No other requirements.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18141
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Jun 2012, 17:34

I think you need to override client side api like;

Code: Select all

PrimeFaces.widget.SelectBooleanButton.prototype.check = function() {
        if(!this.disabled) {
            this.input.attr('checked', 'checked');
            this.jq.children('.ui-button-text').html(this.cfg.onLabel);

            if(this.icon.length > 0) {
                this.icon.removeClass(this.cfg.offIcon).addClass(this.cfg.onIcon);
            }

            this.input.change();
        }
    }
Original code adds ui-state-active as well. This is one way, maybe there is an easier way.

User avatar
Oleg
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Jun 2012, 17:45

I wouldn't like to overwrite it globally. But ok, thanks.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

pantominas
Posts: 10
Joined: 16 Aug 2012, 10:39

16 Aug 2012, 10:43

Are these new properties of progressbar already available in Primefaces ? If so in which version ?
I see the options in showcase labs, but not in the normal showcase.
by the way, whats the primefaces version used for the labs ?

thanks.

User avatar
Oleg
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Aug 2012, 10:54

I think you should ask this question in the core forum. PF Ext. doesn't have Progress- / StatusBar.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests