mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
29 lines
608 B
TypeScript
29 lines
608 B
TypeScript
import {ElementRef, Directive} from 'angular2/angular2';
|
|
|
|
import {IonicConfig} from '../../config/config';
|
|
import {MaterialRippleEffect} from '../material/ripple';
|
|
|
|
/**
|
|
* TODO
|
|
*/
|
|
@Directive({
|
|
selector: 'button,[button]'
|
|
})
|
|
export class MaterialButton {
|
|
/**
|
|
* TODO
|
|
* @param {ElementRef} elementRef TODO
|
|
* @param {IonicConfig} config TODO
|
|
*/
|
|
constructor(elementRef: ElementRef, config: IonicConfig) {
|
|
this.elementRef = elementRef;
|
|
this.config = config;
|
|
}
|
|
|
|
onInit() {
|
|
if (this.config.setting('mdRipple')) {
|
|
//this.ripple = new MaterialRippleEffect(this);
|
|
}
|
|
}
|
|
}
|