action-menu / alert

This commit is contained in:
Adam Bradley
2015-04-01 22:27:44 -05:00
parent fd74dc937e
commit 0e09f64021
13 changed files with 241 additions and 76 deletions

View File

@ -0,0 +1,35 @@
import {NgElement, Component, Template, Parent} from 'angular2/angular2'
import {ComponentConfig} from 'ionic2/config/component-config'
export let AlertConfig = new ComponentConfig('alert')
@Component({
selector: 'ion-alert',
services: [AlertConfig]
})
@Template({
inline: `
<div class="pane-backdrop"></div>
<div class="alert-container">
<div class="alert-content">
Do you like cookies?
</div>
<div class="alert-buttons">
<button class="button">OK</button>
</div>
</div>`
})
export class Alert {
constructor(
configFactory: AlertConfig,
@NgElement() ngElement:NgElement
) {
this.domElement = ngElement.domElement
this.domElement.classList.add('pane')
this.domElement.classList.add('pane-overlay')
this.config = configFactory.create(this)
}
}