1. #1
    Sencha User Saeven's Avatar
    Join Date
    Mar 2007
    Location
    Ottawa, Canada
    Posts
    419
    Vote Rating
    1
    Saeven is on a distinguished road

      0  

    Wink [1.1] Ext.ux.StarRating : Star rating/voting system - forms or standalone

    [1.1] Ext.ux.StarRating : Star rating/voting system - forms or standalone


    We made a little widget that could be used standalone or inside of Ext forms for one of our applications. We thought that the Ext community might benefit from it! Always glad to give back, download at this URL:

    http://saeven.net/ext

    Feedback/bug reports always appreciated!

    Sample usage (standalone):
    Code:
    var stars = new Ext.ux.StarRating( 'voting', { totalStars: 10, average: 6.5 } );
    stars.on( 'rate', function( o, x ){ Ext.get( 'vote_selected' ).update( 'rate event fired: ' + x ); } );
    or

    Code:
    someform.add( new Ext.ux.StarRating( { totalStars: 5 } );
    Cheers.
    Alex
    Attached Images

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    50
    Vote Rating
    0
    K0bo is on a distinguished road

      0  

    Default


    I made the same thing a couple weeks ago.
    It has the about the same functionality, with a little extra's for putting text above and beneath the stars

    Check it out: http://extjs.com/forum/showthread.php?t=10822

  3. #3
    Sencha User Saeven's Avatar
    Join Date
    Mar 2007
    Location
    Ottawa, Canada
    Posts
    419
    Vote Rating
    1
    Saeven is on a distinguished road

      0  

    Default


    That's good, it gives people a choice I suppose!. Our goal was moreso to make a form field only that sticks to ext's textfield constraints (similar geometry) - we really wouldn't have wanted all the text out and about, just so that it looks un-busy inside of a form with multiple votes required. I believe we still would have built our own had we found yours, but good work

    Cheers.
    Alex

  4. #4
    Ext User
    Join Date
    Oct 2007
    Posts
    83
    Vote Rating
    0
    robw is on a distinguished road

      0  

    Default


    Hi,

    Thanks for sharing the Ext.ux.StarRating extension, I've just added it to my project and it works great.

    Did have to fix one bug though - in resetStars it highlights one too many if the average is a whole number. (eg average = 2, 3 stars on)

    Simple to fix - just comment out the "if (diff)" line:
    PHP Code:
     resetStars: function(){
            if( 
    this.valueClicked )
                return;
                
            
    this.clear();
            if( 
    this.average ){
                var 
    lta Math.floorthis.average );
                for( var 
    lta i++ )
                    
    this.stars.item).addClass'on' );
                
                var 
    diff = (this.average Math.floorthis.average )) * 100;
                
    //if( diff ){ /*comment this to set %age to 0 if average is whole number*/
                    
    this.stars.itemlta ).dom.firstChild.style.width diff "%";
            }
            
        }, 
    Hope this helps, thanks again for sharing your work.

    Rob

  5. #5
    Ext User
    Join Date
    Jul 2009
    Posts
    1
    Vote Rating
    0
    kenji01 is on a distinguished road

      0  

    Default Example of Rater

    Example of Rater


    Can anyone give an example of a working basic rater?thanks!

  6. #6
    Touch Premium Member
    Join Date
    Jul 2009
    Posts
    48
    Vote Rating
    0
    Musical Shore is on a distinguished road

      0  

    Default


    Thanks for the component but it is a little buggy. Sometimes you click on the star and it doesn't update, or it resets, or the number of stars lit up doesn't reflect the index clicked. My QA guy gave this the gas face. Sorry.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar