import { Component , OnInit } from '@angular/core' ; import { ThyFormLayout } from 'ngx-tethys' ; interface LayoutInfo { value : ThyFormLayout ; text : string ; } @ Component ( { selector : 'thy-form-layout-example' , templateUrl : './layout.component.html' } ) export class ThyFormLayoutExampleComponent implements OnInit { layouts : LayoutInfo [ ] = [ { value : 'horizontal' , text : 'Horizontal' } , { value : 'vertical' , text : 'Vertical' } , { value : 'inline' , text : 'Inline' } ] ; showForm = true ; currentLayout : LayoutInfo = this . layouts [ 0 ] ; constructor ( ) { } ngOnInit ( ) { } updateLayout ( layout ) { this . showForm = false ; this . currentLayout = layout ; setTimeout ( ( ) => { this . showForm = true ; } ) ; } }