NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on April 14, 2017, 05:55:27 AM

Title: Form Tab Style from Tab to Accordion
Post by: Alberto on April 14, 2017, 05:55:27 AM
Any way to change the Form style from Tab to Accordion at real time deppending on a condition? Ex:Desktop or mobile?
Thanks
Title: Re: Form Tab Style from Tab to Accordion
Post by: osquiabro on April 15, 2017, 10:14:13 AM
loc:TabStyle = p_web.site.WebFormStyle
  If p_web.IsMobile()
    Case loc:TabStyle
    of Net:Web:Accordion
    orof Net:Web:Tab
      loc:TabStyle = Net:Web:Wizard
    End
  End
Title: Re: Form Tab Style from Tab to Accordion
Post by: Bruce on April 15, 2017, 10:44:43 PM
Hi Alberto,

As Osa points out, your code has support for all the tab styles in it.
So yes, you can change at runtime by changing the appropriate property.
Take a look at the generated code to see how it is used.

cheers
Bruce