import ngModule from '../../module'; import FormInput from '../form-input'; import './style.scss'; export default class WdayPicker extends FormInput { constructor($element, $scope, vnWeekDays) { super($element, $scope); this.days = vnWeekDays.locales; this.initTabIndex(); } toggleDay(index) { let field = this.field; if (!field) field = []; field[index] = !field[index]; this.change(field); } } WdayPicker.$inject = ['$element', '$scope', 'vnWeekDays']; ngModule.vnComponent('vnWdayPicker', { template: require('./index.html'), controller: WdayPicker });