devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
34 lines (33 loc) • 1.21 kB
JavaScript
/**
* DevExtreme (esm/__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/
*/
import {
ViewController
} from "../modules/modules";
export class ToastViewController extends 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()
}
}