cartodb-4.42/lib/assets/javascripts/cartodb/table/menu_module.js

29 lines
603 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
/**
* Each module in a layer panel view.
* It could be a filter mod, infowindow mod, sql mod,...
*
*/
cdb.admin.Module = cdb.core.View.extend({
_STORAGE_NAMESPACE: "cdb.localStorage.module.",
// Set which action to do and width to set
// when module is active
_ACTION: {
type: 'narrow',
width: 450
},
// Get the module action
getModuleAction: function() {
return this._ACTION;
},
// Trigger module action change
triggerModuleAction: function() {
this.trigger('tabChanged', this.getModuleAction());
}
});