Added get score

This commit is contained in:
Matt Wheatley
2015-12-25 00:35:57 +00:00
parent 3419482ba9
commit 516e0a1fc0
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ interface JQuery {
raty(): JQuery;
raty(options: JQueryRatyOptions): JQuery;
raty(method: string, parameter: any): any;
raty(method: 'score', score: number): number;
raty(method: 'score'): number;
raty(method: 'score', score: number): void;
raty(method: 'click', star: number): void;
raty(method: 'readonly', on: boolean): void;
raty(method: 'cancel', on: boolean): void;
+1 -1
View File
@@ -43,7 +43,7 @@ $element.raty({
starType: 'img',
});
$element.raty('score');
var score: number = $element.raty('score');
$element.raty('score', 4);
$element.raty('click', 2);
$element.raty('readOnly', true);