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,20 @@
import { OnInit } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
export declare class ButtonCheckbox implements ControlValueAccessor, OnInit {
cd: NgModel;
private btnCheckboxTrue;
private btnCheckboxFalse;
private state;
private onClick();
private value;
constructor(cd: NgModel);
ngOnInit(): void;
private trueValue;
private falseValue;
private toggle(state);
writeValue(value: any): void;
protected onChange: (_: any) => void;
protected onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}

View File

@@ -0,0 +1,18 @@
import { OnInit, ElementRef } from 'angular2/core';
import { ControlValueAccessor, NgModel } from 'angular2/common';
export declare class ButtonRadio implements ControlValueAccessor, OnInit {
cd: NgModel;
el: ElementRef;
private btnRadio;
private uncheckable;
private isActive;
private onClick();
constructor(cd: NgModel, el: ElementRef);
ngOnInit(): void;
protected value: any;
writeValue(value: any): void;
onChange: (_: any) => void;
onTouched: () => void;
registerOnChange(fn: (_: any) => {}): void;
registerOnTouched(fn: () => {}): void;
}