UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

47 lines (39 loc) 1.13 kB
"use strict"; var noop = require("../../core/utils/common").noop, DataHelperMixin = require("../../data_helper"), postCtor = DataHelperMixin.postCtor, name, members = { _dataSourceLoadErrorHandler: function _dataSourceLoadErrorHandler() { this._dataSourceChangedHandler(); }, _dataSourceOptions: function _dataSourceOptions() { return { paginate: false }; }, _updateDataSource: function _updateDataSource() { this._refreshDataSource(); if (!this.option("dataSource")) { this._dataSourceChangedHandler(); } }, _dataIsLoaded: function _dataIsLoaded() { return !this._dataSource || this._dataSource.isLoaded(); }, _dataSourceItems: function _dataSourceItems() { return this._dataSource && this._dataSource.items(); } }; for (name in DataHelperMixin) { if (name === "postCtor") { continue; } members[name] = DataHelperMixin[name]; } exports.plugin = { name: "data_source", init: function init() { postCtor.call(this); }, dispose: noop, members: members };