Start of ripple effects

This commit is contained in:
Max Lynch
2015-07-19 18:02:54 -05:00
parent 27fda400d3
commit 2270f8be74
6 changed files with 32 additions and 3 deletions

View File

@@ -14,7 +14,9 @@ import {App, ActionMenu, IonicApp, IonicView, Register} from 'ionic/ionic';
'</ion-nav-items>' +
'</ion-navbar>' +
'<ion-content>' +
`<ion-list>
`
<button primary md-ripple>Cleeek</button>
<ion-list>
<ion-item>
<h3>All Genres</h3>
<h4>Jan 17 2015</h4>

View File

@@ -8,7 +8,7 @@ $button-material-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26) !defa
$button-material-border-radius: 3px !default;
.button.button-md {
.mode-md button {
border: 0;
border-radius: $button-material-border-radius;

View File

View File

@@ -0,0 +1,17 @@
import {Directive, ElementRef} from 'angular2/angular2';
@Directive({
selector: '[md-ripple]',
host: {
'(click)': 'elementClicked($event)'
}
})
export class MaterialRipple {
constructor(elementRef: ElementRef) {
this.elementRef = elementRef;
console.log('Ripple', elementRef);
}
elementClicked(event) {
}
}