UNPKG

jqwidgets-scripts-custom

Version:

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

73 lines (67 loc) 1.6 kB
import { Component, ViewChild, AfterViewInit } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: 'app.component.html' }) export class AppComponent implements AfterViewInit { ngAfterViewInit(): void { } template: Array<jqwidgets.FormTemplateItem> = [ { bind: 'item1', type: 'text', label: 'Input left alignment', align: 'left', labelWidth: '160px', width: '160px' }, { bind: 'item2', type: 'text', label: 'Input center alignment', align: 'center', labelWidth: '160px', width: '160px' }, { bind: 'item3', type: 'text', label: 'Input right alignment', align: 'right', labelWidth: '160px', width: '160px' }, { bind: 'item4', type: 'text', label: 'Label left alignment', labelAlign: 'left', labelWidth: '160px', width: '160px' }, { bind: 'item5', type: 'text', label: 'Label center alignment', labelAlign: 'center', labelWidth: '160px', width: '160px' }, { bind: 'item6', type: 'text', label: 'Label right alignment', labelAlign: 'right', labelWidth: '160px', width: '160px' } ]; sampleValue: any = { item1: 'left aligned', item2: 'center aligned', item3: 'right aligned', item4: 'left aligned', item5: 'left aligned', item6: 'left aligned' }; }