UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

33 lines 768 B
import { extend } from '../../shared/utils'; import Notification from './notification-class'; import ModalMethods from '../../shared/modal-methods'; export default { name: 'notification', static: { Notification: Notification }, create: function create() { var app = this; app.notification = extend({}, ModalMethods({ app: 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, containerEl: null } } };