Fixed: angular2 beta

This commit is contained in:
buchslava
2016-02-02 18:42:21 +02:00
parent 468fe762b1
commit 16350eb5fb
47 changed files with 41696 additions and 26 deletions

View File

@@ -0,0 +1,28 @@
import { OnInit } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
export declare class Rating implements ControlValueAccessor, OnInit {
cd: NgModel;
private max;
private stateOn;
private stateOff;
private readonly;
private titles;
private ratingStates;
private onHover;
private onLeave;
private range;
private value;
private preValue;
private onKeydown(event);
constructor(cd: NgModel);
ngOnInit(): void;
writeValue(value: number): void;
private buildTemplateObjects(ratingStates, max);
private rate(value);
private enter(value);
private reset();
onChange: (_: any) => void;
onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}