cartodb/lib/assets/javascripts/dashboard/components/mamufas-import/mamufas-import-dialog-view.js
2020-06-15 10:58:47 +08:00

27 lines
603 B
JavaScript

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;
}
});