NetTalk Central

Author Topic: Form Tab Style from Tab to Accordion  (Read 3767 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Form Tab Style from Tab to Accordion
« 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
-----------
Regards
Alberto

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Form Tab Style from Tab to Accordion
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Form Tab Style from Tab to Accordion
« Reply #2 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