salix/modules/client/front/index/item-client.js

25 lines
479 B
JavaScript
Raw Normal View History

2017-06-03 11:01:47 +00:00
import ngModule from '../module';
class Controller {
2018-03-01 20:18:43 +00:00
onClick(event) {
if (event.defaultPrevented)
event.stopImmediatePropagation();
}
preview(event) {
event.preventDefault();
this.list.openSummary(this.client);
}
}
2017-06-03 11:01:47 +00:00
ngModule.component('vnItemClient', {
2017-02-21 10:36:43 +00:00
template: require('./item-client.html'),
controller: Controller,
bindings: {
client: '<'
},
require: {
list: '^vnClientIndex'
}
2017-06-03 11:01:47 +00:00
});