mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
alpha35 update
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* The ActionMenu is a modal menu with options to select based on an action.
|
||||
*/
|
||||
|
||||
import {View, Injectable, NgFor, NgIf, CSSClass} from 'angular2/angular2';
|
||||
import {View, Injectable, NgFor, NgIf, NgClass} from 'angular2/angular2';
|
||||
|
||||
import {TapClick} from '../button/button';
|
||||
import {Overlay} from '../overlay/overlay';
|
||||
@@ -22,19 +22,19 @@ import * as util from 'ionic/util';
|
||||
'<div class="action-menu-group action-menu-options">' +
|
||||
'<div class="action-menu-title" *ng-if="titleText">{{titleText}}</div>' +
|
||||
'<button (^click)="_buttonClicked(index)" *ng-for="#b of buttons; #index = index" class="action-menu-option">' +
|
||||
'<i class="icon" [class]="b.icon" *ng-if="b.icon"></i> ' +
|
||||
'<i class="icon" [ng-class]="b.icon" *ng-if="b.icon"></i> ' +
|
||||
'{{b.text}}' +
|
||||
'</button>' +
|
||||
'<button *ng-if="destructiveText" (click)="_destructive()" class="destructive action-menu-destructive">' +
|
||||
'<i class="icon" [class]="destructiveIcon" *ng-if="destructiveIcon"></i> ' +
|
||||
'<i class="icon" [ng-class]="destructiveIcon" *ng-if="destructiveIcon"></i> ' +
|
||||
'{{destructiveText}}</button>' +
|
||||
'</div>' +
|
||||
'<div class="action-menu-group action-menu-cancel" *ng-if="cancelText">' +
|
||||
'<button (click)="_cancel()"><i class="icon" [class]="cancelIcon"></i> {{cancelText}}</button>' +
|
||||
'<button (click)="_cancel()"><i class="icon" [ng-class]="cancelIcon"></i> {{cancelText}}</button>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'</action-menu-wrapper>',
|
||||
directives: [NgFor, NgIf, CSSClass, TapClick]
|
||||
directives: [NgFor, NgIf, NgClass, TapClick]
|
||||
})
|
||||
class ActionMenuDirective {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user