NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Form Tab Style from Tab to Accordion
« previous
next »
Print
Pages: [
1
]
Author
Topic: Form Tab Style from Tab to Accordion (Read 3768 times)
Alberto
Hero Member
Posts: 1873
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
Logged
-----------
Regards
Alberto
osquiabro
Hero Member
Posts: 687
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
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
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
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Form Tab Style from Tab to Accordion