UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

38 lines (37 loc) • 1.37 kB
/** * DevExtreme (cjs/__internal/grids/grid_core/toast/toast_controller.js) * Version: 26.1.6 * Build date: Fri Oct 16 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ToastViewController = void 0; var _modules = require("../modules/modules"); class ToastViewController extends _modules.ViewController { constructor() { super(...arguments); this._toastView = null } init() { this._toastView = this.getView("toastView") } showToast(message) { var _this$_toastView; let options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; null === (_this$_toastView = this._toastView) || void 0 === _this$_toastView || _this$_toastView.showToast(message, options) } async hideToast() { var _this$_toastView2; await (null === (_this$_toastView2 = this._toastView) || void 0 === _this$_toastView2 ? void 0 : _this$_toastView2.hideToast()) } dispose() { var _this$_toastView3; null === (_this$_toastView3 = this._toastView) || void 0 === _this$_toastView3 || _this$_toastView3.dispose() } } exports.ToastViewController = ToastViewController;