UNPKG

jqwidgets-scripts-custom

Version:

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

21 lines (17 loc) 505 B
import { Component, AfterContentInit } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements AfterContentInit { ngAfterContentInit() { this.index = jqx.cookie.cookie("jqxTabs_jqxWidget"); if (undefined == this.index) { this.index = 0; } } index: any = null; selected(event: any): void { jqx.cookie.cookie("jqxTabs_jqxWidget", event.args.item); } }