16 Zeilen
336 B
JavaScript
16 Zeilen
336 B
JavaScript
export default Ember.Component.extend({
|
|
valuePlaceholder: 'admin.wizard.value',
|
|
|
|
actions: {
|
|
add() {
|
|
if (!this.get('inputs')) {
|
|
this.set('inputs', Ember.A());
|
|
}
|
|
this.get('inputs').pushObject(Ember.Object.create());
|
|
},
|
|
|
|
remove(input) {
|
|
this.get('inputs').removeObject(input);
|
|
}
|
|
}
|
|
});
|