taffy-coustom-ui
Version:
25 lines (19 loc) • 784 B
text/typescript
import { Component, ViewChild } from '@angular/core';
import { jqxCalendarComponent } from 'jqwidgets-ng/jqxcalendar';
import { jqxDropDownListComponent } from 'jqwidgets-ng/jqxdropdownlist';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
('myCalendar', { static: false }) myCalendar: jqxCalendarComponent;
('myDropDownList', { static: false }) myDropDownList: jqxDropDownListComponent;
days: string[] = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
myDropDownListOnSelect(event: any): void {
let index = event.args.index;
if (index === 6) {
index = -1;
}
this.myCalendar.firstDayOfWeek(index + 1);
};
}