cartodb-4.42/lib/assets/javascripts/dashboard/views/public-dataset/table-tab/public-table-tab.js

28 lines
742 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
const TableTab = require('dashboard/views/public-dataset/table-tab/table-tab');
const PublicTableView = require('dashboard/views/public-dataset/public-table-view/public-table-view');
const checkAndBuildOpts = require('builder/helpers/required-opts');
const REQUIRED_OPTS = [
'configModel'
];
module.exports = TableTab.extend({
className: 'table public',
initialize: function (opts) {
checkAndBuildOpts(opts, REQUIRED_OPTS, this);
this.user = this.options.user;
this.sqlView = this.options.sqlView;
},
_createTable: function () {
this.tableView = new PublicTableView({
configModel: this._configModel,
dataModel: this.model.data(),
model: this.model,
sqlView: this.sqlView
});
}
});