Hide Tab in ViewNavigator in Flex/Flash Builder? - apache-flex

I want to hide a Tab in ViewNavigator, is this possible?
The thing is I want to have a View and a ViewNavigator, but I don't want to have the View as a Tab in the Navigator.
In other words I want to have a View that the user cannot reach from the Tabs in the Navigator. Simply a View/ViewNavigator without being a Tab in the menu.
Is this possible?

Just set visible=false and includeInLayout=false on your Tab.

Related

How to add context menu Xamarin.forms

I would like to create context menu in my project. On android it's called PopupMenu. On click of button, I have to show the popup with 3 rows and it's clickable event. How I can implement this in my code? Example of this menu here:
http://www.javatpoint.com/images/androidimages/popup2.png
The Xamarin.Forms way to handle this is to call DisplayActionSheet() on the Page.
It's not exactly a popup, but on the other hand it has better chances to be fully displayed and visible on screen if your view can scroll.

How to keep view when changing tab in TabbedViewNavigatorApplication

I'm working on a flex 4.6 mobile project
and I found TabbedViewNavigatorApplication will destory the old view and create a new view every time change a tab.
For example, user entered some text at a textInput in View1, then user change to View2 tab and change back to View1 tab. at this time, the entered text is gone.
My question is
How to keep these view instance when changing tabs(just like iphone tabbar did)?
Did you try destructionPolicy="never"property in View component?

storyboard - how to display a tab view modally when user hits the tabbar?

I have 4 items in my TabBar. One of the items is a "WorkFlowViewController". I want to show "WorkFlowViewController" modally when the user hits that tab in my TabBar, like click on the voicemail tab on Phone App.
How to do that using segue in the storyboard?
I tried to link(Control+mouse) the TabBarViewController with the WorkFlowViewController, Storyboard segue shows four options:
1. relationship
2. push
3. modal
4. custom
if I choose "relationship", it will auto add tab item to the tabbar and works fine(not modally) when the user hits the tab.
if i choose "modal", it won't add the tab item to the tabbar, then the user has no where to click on the tab item. and i can't manually add tab item to my tabbar using storyboard.
Thanks a lot.
You can't. TabBarViewController is a container view controller and thus only option 1 (relationship) is applicable.

Flex: Is it possible to hide some tabs in tab navigator and show them only when certain event occurs

I am using tab navigator. And it has thee tabs "Search", "Show as text", "Show on map"
I have a address search box in Search tab. I would like to hide other two tabs if search has not happened yet. So if user hasn't searched any thing other two tabs shouldn't be visible.
Can you please tell me how can I achieve this?
Hiding tabs is a preferred way.
Second option is to disable tabs until search is done.
There are a couple ways to do this.
Use the TabNavigator's getTabAt() method which returns the Button that makes up the visual tab and set the visible property to false. It can be tricky with bindings.
The other option is to addChildAt or removeChildAt on the TabNavigaor depending on what tabs you want to show or hide.
As you mention disabling could also work. Do this by as well setting the tab's container to disabled.
I had used removeChildAt on tab navigator and works fine. But if you want to do specific actions on selected Tab then you should think about other solution because the removedChild is no longer available in tab navigator.

Implementing Tabs and Data grid together in Flex

I have a problem in my project.I want to implement Tab bar function under a drop down selection and when once tab bar is clicked it has to be navigated to a data grid.Can any body suggest me the proper direction to implement it.
Thanks,
Brenda
Use a tab navigator, add canvases as children to that navigator, put your datagrid on one of those children.

Resources