mirror of https://github.com/rancher/ui.git
19 lines
472 B
JavaScript
19 lines
472 B
JavaScript
import Component from '@ember/component';
|
|
import layout from './template';
|
|
|
|
export default Component.extend({
|
|
layout,
|
|
tagName: 'input',
|
|
type: 'radio',
|
|
disabled: false,
|
|
attributeBindings: ['name', 'type', 'checked:checked', 'disabled:disabled'],
|
|
|
|
checked: function() {
|
|
return this.get('value') === this.get('selection');
|
|
}.property('value', 'selection'),
|
|
click() {
|
|
this.set('selection', this.get('value'));
|
|
},
|
|
|
|
});
|