mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Allow to add custom CSS class to popup
This commit is contained in:
7
js/angular/service/popup.js
vendored
7
js/angular/service/popup.js
vendored
@@ -1,6 +1,6 @@
|
||||
|
||||
var POPUP_TPL =
|
||||
'<div class="popup-container">' +
|
||||
'<div class="popup-container" ng-class="class">' +
|
||||
'<div class="popup">' +
|
||||
'<div class="popup-head">' +
|
||||
'<h3 class="popup-title" ng-bind-html="title"></h3>' +
|
||||
@@ -138,6 +138,7 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
|
||||
* ```
|
||||
* {
|
||||
* title: '', // String. The title of the popup.
|
||||
* class: '', // String, The custom CSS class name
|
||||
* subTitle: '', // String (optional). The sub-title of the popup.
|
||||
* template: '', // String (optional). The html template to place in the popup body.
|
||||
* templateUrl: '', // String (optional). The URL of an html template to place in the popup body.
|
||||
@@ -176,6 +177,7 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
|
||||
* ```
|
||||
* {
|
||||
* title: '', // String. The title of the popup.
|
||||
* class: '', // String, The custom CSS class name
|
||||
* subTitle: '', // String (optional). The sub-title of the popup.
|
||||
* template: '', // String (optional). The html template to place in the popup body.
|
||||
* templateUrl: '', // String (optional). The URL of an html template to place in the popup body.
|
||||
@@ -204,6 +206,7 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
|
||||
* ```
|
||||
* {
|
||||
* title: '', // String. The title of the popup.
|
||||
* class: '', // String, The custom CSS class name
|
||||
* subTitle: '', // String (optional). The sub-title of the popup.
|
||||
* template: '', // String (optional). The html template to place in the popup body.
|
||||
* templateUrl: '', // String (optional). The URL of an html template to place in the popup body.
|
||||
@@ -242,6 +245,7 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
|
||||
* ```
|
||||
* {
|
||||
* title: '', // String. The title of the popup.
|
||||
* class: '', // String, The custom CSS class name
|
||||
* subTitle: '', // String (optional). The sub-title of the popup.
|
||||
* template: '', // String (optional). The html template to place in the popup body.
|
||||
* templateUrl: '', // String (optional). The URL of an html template to place in the popup body.
|
||||
@@ -306,6 +310,7 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
|
||||
title: options.title,
|
||||
buttons: options.buttons,
|
||||
subTitle: options.subTitle,
|
||||
class: options.class,
|
||||
$buttonTapped: function(button, event) {
|
||||
var result = (button.onTap || angular.noop)(event);
|
||||
event = event.originalEvent || event; //jquery events
|
||||
|
||||
Reference in New Issue
Block a user