dzraty A wrapper for jQuery Raty plugin

  1. Changelog
  2. Installation
  3. Usage
  4. Localization - i18n
  5. Resources

dzRaty is a wrapper for jQuery Raty, a plugin developed by Washington Botelho that generates a customizable star rating.

To get started, check http://yii.dezero.es/dzraty

Changelog

v1.1

  • Integration with CGridView as filter and data column
  • Upgraded to jQuery Raty 2.5.2

v1.0

  • Initial commit

Installation

Requirements: jQuery and Yii framework 1.0 or above (tested on 1.1.12).

Extract downloaded file to your Yii application extensions folder (default: protected/extensions).

Usage

Edit mode

Using with an attribute model. weight is a sample attribute name

$this->widget('ext.DzRaty.DzRaty', array(
	'model' => $model,
	'attribute' => 'weight',
));

Using with a single input element

$this->widget('ext.DzRaty.DzRaty', array(
	'name' => 'my_rating_field',
	'value' => 3,
));
View / Read-only mode
$this->widget('ext.DzRaty.DzRaty', array(
	'name' => 'my_rating_field',
	'value' => 3,
	'options' => array(
		'readOnly' => TRUE,
	),
));

Localization - i18n

dzRaty translates all translatable elements of jQuery Star plugin. You can place your own translation file under DzRaty/messages.

Current version contains translation files for spanish. You could simply duplicate and edit one of them.

Resources

8 0
18 followers
1 852 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Fabián
Created on: Feb 11, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions