salix/modules/travel/front/extra-community-search-panel/index.js

32 lines
654 B
JavaScript

import ngModule from '../module';
import SearchPanel from 'core/components/searchbar/search-panel';
class Controller extends SearchPanel {
constructor($, $element) {
super($, $element);
this.filter = this.$.filter;
}
get shippedFrom() {
return this.filter.shippedFrom;
}
set shippedFrom(value) {
this.filter.shippedFrom = value;
}
get landedTo() {
return this.filter.landedTo;
}
set landedTo(value) {
this.filter.landedTo = value;
}
}
ngModule.vnComponent('vnExtraCommunitySearchPanel', {
template: require('./index.html'),
controller: Controller
});