@pi0/framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
35 lines (33 loc) • 648 B
JavaScript
import Utils from '../../utils/utils';
import Toast from './toast-class';
import ModalMethods from '../../utils/modal-methods';
export default {
name: 'toast',
static: {
Toast,
},
create() {
const app = this;
app.toast = Utils.extend(
{},
ModalMethods({
app,
constructor: Toast,
defaultSelector: '.toast.modal-in',
})
);
},
params: {
toast: {
icon: null,
text: null,
position: 'bottom',
closeButton: false,
closeButtonColor: null,
closeButtonText: 'Ok',
closeTimeout: null,
cssClass: null,
render: null,
},
},
};