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

23 lines
345 B
JavaScript
Executable File

var Backbone = require('backbone');
/*
* List item model
*
*/
module.exports = Backbone.Model.extend({
defaults: {
selected: false
},
getName: function () {
return (this.get('label') == null) ? this.getValue() : this.get('label'); // eslint-disable-line
},
getValue: function () {
return this.get('val');
}
});