How to use the devextreme/bundles/modules/core.ui function in devextreme

To help you get started, we’ve selected a few devextreme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DevExpress / Blazor / demo / BlazorDemo.ClientSideWithPrerendering / BlazorDemo / wwwroot / lib / scroll-view.config.js View on Github external
"use strict";

/* Refer to https://js.devexpress.com/Documentation/Guide/Common/Modularity/Create_a_Custom_Bundle/ for information on how to create a DevExtreme bundle. */

/* Core (dx.module-core.js) */

var DevExpress = require("devextreme/bundles/modules/core");

/* UI core (dx.module-core.js) */

var ui = DevExpress.ui = require("devextreme/bundles/modules/ui");
ui.dxScrollView = require("devextreme/ui/scroll_view");
ui.ensureScrollView = function (element) {
    var instance = ui.dxScrollView.getInstance(element);
    if(instance)
        instance.update();
    else
        instance = new ui.dxScrollView(element, {});
};