1. #1
    Ext User Alcoholov's Avatar
    Join Date
    Aug 2007
    Location
    Plovdiv, Bulgaria
    Posts
    7
    Vote Rating
    0
    Alcoholov is on a distinguished road

      0  

    Default Rating extension

    Rating extension


    Hi all,
    I've created an extension for rating. It's my first one
    You can see demo on this link:
    http://dev.iordanov.net/ext/examples...er/slider.html

    and here is download link:
    http://dev.iordanov.net/starslider.tar.gz

  2. #2
    Sencha Premium Member ajaxvador's Avatar
    Join Date
    Nov 2007
    Location
    PARIS, FRANCE
    Posts
    206
    Vote Rating
    0
    ajaxvador is on a distinguished road

      0  

    Default


    fine work
    Vador

  3. #3
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Excellent init,

    1) What about up / down when mouse over.

    2) If you click in 4 and then, you want to click in 2, is imposible (IE7).

    Greetings,

  4. #4
    Ext User Alcoholov's Avatar
    Join Date
    Aug 2007
    Location
    Plovdiv, Bulgaria
    Posts
    7
    Vote Rating
    0
    Alcoholov is on a distinguished road

      0  

    Default


    It's should be possible (I don't have any IE to test with). You can drag&drop yellow stars, or try using arrows on you keyboard. Click event works only when you click on gray star (for now)

  5. #5
    Ext User Alcoholov's Avatar
    Join Date
    Aug 2007
    Location
    Plovdiv, Bulgaria
    Posts
    7
    Vote Rating
    0
    Alcoholov is on a distinguished road

      0  

    Default


    I've updated the sources, now you can also click on yellow stars

  6. #6
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    322
    Vote Rating
    4
    Scorpie is on a distinguished road

      0  

    Default


    Very nice indeed!
    I`m from Holland!

  7. #7
    Sencha - Community Support Team SamuraiJack1's Avatar
    Join Date
    May 2008
    Posts
    553
    Vote Rating
    3
    SamuraiJack1 will become famous soon enough

      0  

    Default


    Looks cool, I'm going to use it )

    How about to publish it in repository, so I'll be able update it easily if you upgrade it?
    http://extjs.com/forum/showthread.php?t=43450

  8. #8
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by Alcoholov View Post
    I've updated the sources, now you can also click on yellow stars
    Excellent work!!!

    Sorry for my english,

    Is posible other mode?: On over move starts to your fauvorite rating.

    Support decimal values? For example: 3,5 three stars and middle.

    Is posible configure the maximun note?. For example 10 stars or 3 stars by a config value

    Thanks for share,

    Greetings,

  9. #9
    Ext User Alcoholov's Avatar
    Join Date
    Aug 2007
    Location
    Plovdiv, Bulgaria
    Posts
    7
    Vote Rating
    0
    Alcoholov is on a distinguished road

      0  

    Default


    @SamuraiJack1:
    How can I publish it there?

    @galdaka
    Stars number is calculated dynamically.
    it's maxValue/increment
    for example:
    starConfig: {
    maxValue: 100,
    increment: 10
    }
    and you will have 10 stars.
    by default increment = 1
    For now half stars are not supported but it should be easy to implement. Latter today I'll post an update.

    For over mode I may add an option in configuration but also latter.

  10. #10
    Sencha - Community Support Team SamuraiJack1's Avatar
    Join Date
    May 2008
    Posts
    553
    Vote Rating
    3
    SamuraiJack1 will become famous soon enough

      0  

    Default


    Examine this link, its a description of repo for authors.
    http://extjs-ux.org/twiki/bin/view/M...positoryDesign

    Generally you'll need to document your code with jsdoc tags (like Ext library itself)