Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to hide content when switching tabs?
Started by yazan21 Mar 02 2018 07:47 AM

- - - - -
2 replies to this topic
tabs content display hide
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

yazan21

[GLOBAL: userInfoPane.html]
yazan21
  • Enthusiast

  • 51 posts
  • Corona SDK

Self-explanatory question - how to hide content in previously selected tabs when switching between them?

[TOPIC: post.html]
#2

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 761 posts
  • Corona SDK

The answer is just as simple, use display groups. Tables and display groups are cornerstones in corona/lua Understand that as well as the scope of coding lua, and much is done

[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,471 posts
  • Enterprise

If you're using Composer, then each tab's contents would be a separate scene and you could let Composer manage your scene for you. You can study our business app sample where we create the tabBar in main.lua but use it to show various Composer scenes:

 

https://github.com/coronalabs-samples/business-app-sample

 

 

Rob




[topic_controls]
[/topic_controls]