Contextual host type colors

This commit is contained in:
Jamie Curnow
2018-07-09 12:21:03 +10:00
parent 54d220a191
commit 0455920355
16 changed files with 231 additions and 28 deletions

View File

@ -7,6 +7,10 @@ module.exports = Mn.View.extend({
className: 'text-center m-7',
template: template,
options: {
btn_color: 'teal'
},
ui: {
action: 'a'
},
@ -20,10 +24,11 @@ module.exports = Mn.View.extend({
templateContext: function () {
return {
title: this.getOption('title'),
subtitle: this.getOption('subtitle'),
link: this.getOption('link'),
action: typeof this.getOption('action') === 'function'
title: this.getOption('title'),
subtitle: this.getOption('subtitle'),
link: this.getOption('link'),
action: typeof this.getOption('action') === 'function',
btn_color: this.getOption('btn_color')
};
}