UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

33 lines (32 loc) 1.02 kB
/** * DevExtreme (esm/renovation/component_wrapper/navigation/scroll_view.js) * Version: 21.2.3 * Build date: Thu Oct 28 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() } _optionChanged(option) { var { name: name } = option; if ("useNative" === name) { this._isNodeReplaced = false } super._optionChanged(option) } }