I am using this collapsible panel - link. Unfortunately, I have a problem using it with application states. I have a state where this panel is visible, when I switch to this state, this panel shows, when I click on it, it opens and its content shows. If I switch to another state (this panel is removed from display), and then switch back to the previous state, the collapsible panel stays open, but its content disappears. In other words, the collapsible panel's content doesn't persist through states.
Anyone know what the problem is? Or is there another collapsible panel that can work around this issue? Thanks.
I've used this CollapsiblePanel component by Arc90 with some success.
I am testing this one EnhancedTitleWindow: http://blog.9mmedia.com/?p=535
Related
I have two JSSOR sliders on a page. I need my page to be keyboard navigable for "accessibility" purposes. So I set $ArrowKeyNavigation to true, and now I can keyboard navigate both sliders. Trouble is, the arrow keys move through both sliders at the same time. There is no way to step through just one of the two sliders.
My first thought was adding a $(elem).focus() handler on either the slider itself, or the container around the slider, then in the handler, update the $ArrowKeyNavigation setting. However, there is no API for getting/setting the $ArrowKeyNavigation property, so it seems like the whole JSSOR Slider must be completely recreated. I did this also, but the process of doing that interferes with the current focus, so you end up not being able to past the slider.
Is there a more reliable way to enable keyboard navigation in JSSOR slider on focus, so that two sliders may co-exist on a page and be independently controlled by the keyboard?
I have created a component using panel. By Default it is draggable(using the title bar). How Can I disable the panel dragging.
That is weird cause the standard Panel component in flex doesn't move automatically. You probably used some customized version of it or used the popUpManager. If so check this. Some code of your project would be helpful.
Create a Group Component and Place the panel inside with and height as 100%.
Then your panel Wouldnot be a draggable one.
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.
In my flex app I have custom tooltips on buttons that hide and show based on user context.
The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips.
For some reason all tooltips are showing.
Is there a way to detect if a button is not in current view, like on a un-selected tab?
If you gave us some code I could check this out, but would this work?
if(button.parent.visible) { showTip(button);}
Instead of custom coding for each button, make use your tabnavigator's creation policy is set to "auto".
Check this link for more details
http://livedocs.adobe.com/flex/3/html/help.html?content=layoutperformance_05.html
I have a bit of doubt regarding my application which is being created using Mate framework. The first thing user has to do is to log in, so I created Login.mxml view. After a successful login I need to display the main view with applicationControlBar at the top and a workspace below. At the moment I have two separate views, so if I understand correctly it makes sense using ViewStack.
Thing is, I'd like also to display some kind of panel with buttons on top of the workspace after login - here is screenshot. After clicking on a button the panel should dissapear. To complicate things a little bit more, there is a possibility for this panel to change state. Clicking on a specific button may result in showing progress bar at the bottom of panel.
I feel I should create separate view, MenuDialog.mxml and put there buttons, progress bar and states, but how to display it on the top of the workspace? I hope my problem is clear enough :)
I would make the panel a popUp, with the main application (or the ViewStack's parent container) as the parent of the popUp. You can use the PopUpManager Class to close it based on user actions within the Panel.
Assuming that perhaps you do not want a modal login style panel (which many apps these days eschew) then you should absolutely use states rather than ViewStacks.
States are a much cleaner way to distinguish the various, uh, states that your UI can be in -LOGGED_IN, LOGGED_OUT, etc.
It may take a little to get used to working with states, but once you do, you'll never go back. :-)