cartodb-4.42/lib/assets/javascripts/dashboard/components/mamufas-import/mamufas-import-dialog-view.js

27 lines
603 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
const CoreView = require('backbone/core-view');
const template = require('./mamufas-import-dialog.tpl');
const checkAndBuildOpts = require('builder/helpers/required-opts');
/**
* Dialog for drop actions using mamufas
*
*/
const REQUIRED_OPTS = [
'modalModel'
];
module.exports = CoreView.extend({
className: 'Dialog-contentWrapper MamufasDialog',
initialize: function (options) {
checkAndBuildOpts(options, REQUIRED_OPTS, this);
},
render: function () {
this.$('.Dialog-content').addClass('Dialog-content--expanded');
this.$el.append(template());
return this;
}
});