@pi0/framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
37 lines (35 loc) • 741 B
JavaScript
import Utils from '../../utils/utils';
import Notification from './notification-class';
import ModalMethods from '../../utils/modal-methods';
export default {
name: 'notification',
static: {
Notification,
},
create() {
const app = this;
app.notification = Utils.extend(
{},
ModalMethods({
app,
constructor: Notification,
defaultSelector: '.notification.modal-in',
})
);
},
params: {
notification: {
icon: null,
title: null,
titleRightText: null,
subtitle: null,
text: null,
closeButton: false,
closeTimeout: null,
closeOnClick: false,
swipeToClose: true,
cssClass: null,
render: null,
},
},
};