UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

40 lines (39 loc) 1.28 kB
/** * DevExtreme (esm/renovation/component_wrapper/navigation/scroll_view.js) * Version: 21.2.4 * Build date: Mon Dec 06 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import Component from "../common/component"; import { Deferred } from "../../../core/utils/deferred"; export class ScrollViewWrapper extends Component { update() { var _this$viewRef; null === (_this$viewRef = this.viewRef) || void 0 === _this$viewRef ? void 0 : _this$viewRef.updateHandler(); return Deferred().resolve() } release(preventScrollBottom) { this.viewRef.release(preventScrollBottom); return Deferred().resolve() } isRenovated() { return !!Component.IS_RENOVATED_WIDGET } _dimensionChanged() { var _this$viewRef2; null === (_this$viewRef2 = this.viewRef) || void 0 === _this$viewRef2 ? void 0 : _this$viewRef2.updateHandler() } _optionChanged(option) { var { name: name } = option; if ("useNative" === name) { this._isNodeReplaced = false } super._optionChanged(option) } }