UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

25 lines (19 loc) 798 B
import { Component, ViewChild } from '@angular/core'; import { jqxCalendarComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxcalendar'; import { jqxDropDownListComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxdropdownlist'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('myCalendar') myCalendar: jqxCalendarComponent; @ViewChild('myDropDownList') 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); }; }