Tapestry

Tapestry5 jQuery provides jQuery Components and can fully replace Prototype and Scriptaculous by jQuery

Raty

Raty Mixin

Description

This Mixin is used to call a jquery plugin "raty" that will provide rendered stars for different uses:

  • In a form: You can call the mixin in a Textfield or a Select, it will replace the input with a list of stars to rate
  • In a division: You can call the mixin in a division to display a result.
  • Links

    Parameters
    Name Required Java Type Default Prefix Default Value Description
    ratyOptionsfalseJSONObjectpropThe options you want to pass onto the JQuery plugin 'raty' used for the rate
    ratyRatesfalseSelectModelpropthe list of rates you want to be displayed/available. The SelectModel values must start from (0 if you want the possiblity of no rate or 1) and increase its value by 1 for each rate in case of an input to synchronize both
    ratyValuefalseFloatpropThe value you want to setfor the raty plugin.
    ratyStarOnfalseAssetpropThe asset containing the image you want to be displayed for an active star icon.
    ratyStarOfffalseAssetpropThe asset containing the image you want to be displayed for an inactive star icon.
    ratyCancelOnfalseAssetpropThe asset containing the image you want to be displayed for an active cancel icon.
    ratyCancelOfffalseAssetpropThe asset containing the image you want to be displayed for an inactive cancel icon.
    ratyLocationfalseTagLocationpropThe string containing the literal ('before' or 'after') expression for the relative location of the Raty mixin refering to the input.

    The Raty mixin with a Select or TextField components

    The Raty mixin with the Any Component, for displaying in readn-only the value of the rate