arma-server-web-admin/public/js/app/views/settings.js
2019-10-18 11:06:47 +02:00

19 lines
350 B
JavaScript

var _ = require('underscore')
var Marionette = require('marionette')
var tpl = require('tpl/settings.html')
module.exports = Marionette.ItemView.extend({
template: _.template(tpl),
modelEvents: {
change: 'render'
},
templateHelpers: {
isTypeChecked: function (type) {
return this.type === type ? 'checked' : ''
}
}
})