cartodb-4.42/lib/assets/javascripts/builder/components/mosaic/mosaic-item-model.js
2024-04-06 05:25:13 +00:00

28 lines
381 B
JavaScript
Executable File

var Backbone = require('backbone');
/*
* List item model
*
*/
module.exports = Backbone.Model.extend({
defaults: {
disabled: false,
selected: false,
label: '',
template: function () {
return '';
}
},
getName: function () {
return this.get('label') || this.getValue();
},
getValue: function () {
return this.get('val');
}
});