How to reset the content when switching between tabs

My use case, is that I have all of the multiple tabs displayed in the sidebar. The content of the tabs each has a title bar of free-form which is scalable. If lets say on tab 1, the title bar is developed, and then when you go to the tab 2, is it possible the collapse of the State of the title bar in tab 1 expanded. Or when you switch to tab 1, is it possible to reset the State of the title bar - meaning collapsed.

I tried all possible solutions, such as the resetExpanded() or use of the definition of the extended property to false dynamically but no work.

The only thing working is while I'm in tab 1, I develop the title bar while in the same tab, if I perform any other action, I could run resetExpanded() but that's it. Outside tab 1, as in the QML who has the tabbed pane, listening to side bar changed state events, events to change active tab etc., none to take effect.

There is no ID for the expandableArea so I couldn't get to the extended property that I could create an Alias for.

Also the unique ID that gets me access to the resetExpanded() is the ID of the

FreeFormTitleBarKindProperties, and that's how I'm able to do the

ID.expandableArea.resetExpanded () BUT that I couldn't create an Alias for this FreeFormTitleBarKindProperties because it is not to be an alias of an identifier is valid.

So I don't know how to solve this problem, unless there is a way to destroy the contents of the tab whenever I switch to a different tab, but it is very inefficeint and suffers poor performance.

Any ideas anyone how to solve this problem. Appreciate your help.

Finally, I was able to solve it!

Originally I had the game content tab statically at the beginning in the tab "as

Before:

Tab {}

{somePage}

}

}

After:

Now, I created somePage using ComponentDefinition and assigined the content of the tab as

tabbedPane.content = somePage, followed by all the properties of customization that I send to somePage

Now in TabbedPane, I listen to two events below

onActiveTabChanged: {}

resetTabContent();

}

onSidebarVisualStateChanged: {}

resetTabContent();

}

resetTabContent - calls the function

function resetTabContent() {}

mainPane.activeTab.content.resetDropDown ();

}

The resetDropDown() function is globally on all aspects for the TabbedPane

{functionresetAccountsDropDown()}

contentArea.expandableArea.resetExpanded ();

}

where contentArea is the ID of the kindProperties of the title bar

{Page}

title bar: title {} bar

ID: pageTitle

scrollBehavior: TitleBarScrollBehavior.Sticky

type: TitleBarKind.FreeForm

kindProperties: {FreeFormTitleBarKindProperties}

ID: accountsArea

{Of container

}

{expandableArea}

}

}

}

}

Enjoy!

Tags: BlackBerry Developers

Similar Questions

  • Reset the workspace when switching between laptop and external monitor

    Is there a way to have my work space reset itself (or better yet change between two workspaces) when I pass between my laptop and my external monitor to my office. Adobe likes to crush my workspace in a sea of useless, mutilated pallets when I leave my office. There at least had the kindness to put it when I get back.

    I realize I can manually reset and I even put in place a combination of keys, but I don't see why he can't do it on its own. Or better yet, stop blend it upward in the first place.

    Unfortunately, I think it's an OS and PS reacts only to have to resize it to another monitor.

  • Trails of the icon when switching between desktops in the Sierra

    I noticed some display problems since the update for Sierra. I see some trails icon when switching between desktop computers as well as a line of 1px of random colors on the right side of the screen seems to be leftover pixels for the desktop switch as well.

    Here is a screenshot: https://cl.ly/hegc

    Here is a video showing the paths of the icon: https://cl.ly/hef9

    Any other light this or know how to fix? It's rather annoying.

    Thanks in advance,

    Brent

    Hello Brent Spore.

    Thank you for reaching out to the Community Support from Apple. I know how it is important to keep your Mac running properly, and I want to help him.  Whenever we see the behavior as what you described, it is a good idea to test the symptoms in a separate user in safe mode. This will help us determine if the remanence of the icon is linked to a problem with the user account or if it's a question broad system. The articles below will guide you through these steps.

    How to test a question in another account on your Mac.

    Try safe mode if your Mac does not end commissioning

    If the ghost still occurs in safe mode, then we know it is a question broad system and I would recommend backup your Mac and Mac OS re-install using recovery, as described in the articles below:

    Use Time Machine to back up or restore your Mac

    How do I reinstall macOS

    If the behaviour continues or if you encounter difficulties, the entire community is here to help.

    Best regards.

  • Rearrange the spaces when switching between applications

    When switching between apps spaces can reorganize, which is disturbing for users with specific workflows. For example, right now I have 6 places with different applications in each, and I have these in a specific order. However, since upgrading to El Capitan, I find continues to reorganize themselves. I can reproduce this by opting for an application by opening a window in a non adjacent space. For example, I have a window open in 4-space and I am consulting a window in space 1. If I pass this request, space 4 will be moved to position 2. It always seems to move space to the next position to the right of the current space. I can reproduce this reliable either by opting for an application by using cmd - tab, or if I have multiple windows for a single application running in more than one space, using app expose.

    Djroshi,

    My office reorganise themselves once the screen saver is running can provide you with some tips to change this behavior.

  • Combustion chamber is very slow when switching between tabs, the legs more slowly, he gets, switching between the windows of Firefox is almost instantaneous.

    In this case all that is display of each tab. For example, if I open it, say, 8 new tabs by default it takes about 5 seconds to switch between them, although all that they show are links to my sites top of page 9. I also noticed a new tab opening takes more time more I already opened. The problem is particularly well with the tabs. Navigation is not just slower than usual and as I said above, switching between Firefox Windows in not affected.

    If it works in Mode safe mode and normal mode with all extensions (Firefox, Tools/menu key > Modules > Extensions) off and then try to find which extension is the cause by allowing an extension at a time until the problem reappears.

    Close and restart Firefox after each change via * button '3-bar' menu > exit (Power button)

    • Windows: File > Exit
    • Mac: Firefox > quit Firefox
    • Linux: File > exit
  • How to reset the password when locked

    My sister just got an iPhone 6 and she has a password and then locked her self because she forgot the password.

    How do reset us the phone.

  • How to reset the options when you enter a disc in the drive.

    Apparently, I put the options in the window when I insert a disc to be permanent.  How to return to default values?

    Hello
    Welcome to the HP Forum!

    pappy444 wrote:

    Apparently, I put the options in the window when I insert a disc to be permanent.  How to return to default values?

    Please to identify your computer.

    Ook from Lto the base/back/side of the pc/laptop to the sticker with barcode.

    Item number of pole 2 as seen on the following example of label with barcode of a HP laptop. The barcode on your HP product may be slightly different in appearance, but will still have important information necessary for us to help you.

    #Do not post not the serial number of your product because it is personal information. ###

    Display the version of the operating system installed (State whether 32 or 64 bit) and the processor as one product AMD or Intel

    What specific drive you are talking about the State. Do you mean an optical drive such as a CD or a DVD?

    If you use Windows 7 or Vista:

    Click the Windows Orb and in the search box, type autoplay.

    Above, you will see the option change the defaults for the media or devices. Select it.

    Now, you can choose the default actions you want to happen with devices and media. Once you have chosen don't forget to click on save.

    Best regards

    ERICO

  • Delicate design adds huge empty space when switching between breakpoints

    Hello

    On my site: http://mannyrothman.com . For some reason any in the browser when switching between breakpoints (mobile office and back on desktop) a large white space appears between «for professional content...» ' And 'contact'.

    What is going on? Is this a bug of Muse or do I set my breakpoints incorrectly?

    Thank you!

    Hi Manny,

    Your HTML widgets at the top of your page are the cause. Interestingly, it seems to be the "Flipping Transitioner V5" widget which is triggering problems. When I remove this Widget, page exports and behaves properly. With only this widget on the page, he begins to develop, then corrects herself. My recommendation is to study with MuseResources.com why this widget is causing this bug.

    Thank you

    Dana

  • Version 5.0 on a MAC doesn't let me switch between tabs. Can I open a new tab, but when I try to go in a different tab, it shows me just the content of the tab opened most recently. Help!

    Version 5.0 on a MAC doesn't let me switch between tabs. Can I open a new tab, but when I try to go in a different tab, it shows me just the content of the tab opened most recently. Help!

    In addition, pop up blocker works for a while and then stops working. I have to close and restart Firefox to make it work again. Help!

    I had the same problem, but with Firefox 4.0. My first thought was last updated to Firefox (after of course restarting FF), but it did not help and I had the same problem.

    Among others, I had an extension installed and enabled called tile tabs 4.10 I thought could easily create this problem. I went in my Add-ons Manager and disabled, restarted Firefox and tabs worked properly again. Unfortunately, the extension of the tile tabs is my favorite Firefox Add-on and I use it almost every day to manage my web tasks. I went to the page Add on for tile tabs and saw that there was a notice that version 4.10 did not work properly on Mac OS and install version 4.9 of the extension. I saw that they had a new is not-yet-seen version 4.11 who has tackled the problem of Mac OS, installed, and everything seems to work properly.

    I have no idea why all of a sudden I had this problem as I don't had not updated Firefox or the extension of the tile tabs recently. Also, obviously this could not solve your problem, especially if you have the module installed and active. But our problem started at the same time for both of us it seems based on your post time, so its probably not a coincidence.

    But its worth a quick glance and you can check other extensions if you don't have the legs of tile that might be the cause of the problem.

  • I have a problem with the mouse cursor moving left to right and not conversely when switching between screens.

    Original title: change the direction of the mouse moves from the main screen to the external monitor

    My mouse movements from left to right when moving from one screen to the other, I want that he move right left how do that change

    Hi Jayson Bourne,

    Welcome to the Microsoft community. According to the description of problem cursor mouse moves from left to right and not vice versa when switching between screens. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         What is the brand and model of the mouse?

    I'll help you with this problem. I suggest you follow these methods.

    Method 1: Follow the steps in the article.

    Change the settings of the mouse

    Method 2: Update the latest drivers/software for the mouse.

    Updated a hardware driver that is not working properly

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • How to get a dialog/pop up when switching between PanelTabbed ShowDtlItem

    I have an obligation to ask the user through a dialog/pop up when switching between PanelTabbed ShowDetailItems (if he really wants to move to another tab).
    How can we achieve this?
    Framework provides all the methods?

    Hello

    Since you have to remove the switch tab, I think you should try an af:clientListener, and then cancel the click event and display the context menu. If the user confirms the switch, manually set the property disclosed on the showDetailItems that you want to display and the panetabbed componnent ppr

    Frank

  • Favicons repeat through tabs, behind the label text when you switch between tabs. 37.0.1 sometimes the Green scroll bar does not have too

    Please mention the attached JPEGS. When I switch between tabs, favicon image repeated behind the text. In some cases, the image of the vertical scrollbar is messed up, it cleared up when I click on it. -Does not appear to affect performance, simply annoying. Thank you!

    Please temporarily disable your Avast extension to see if it has to do with it.

    Try Firefox Mode without failure:

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Why gesture to turn on my trackpad behaves not as before for switching between tabs when it works the same with all other programs besides Firefox?

    Why gesture to turn on my trackpad behaves not as before for switching between tabs when it works the same with all other programs besides Firefox?

    I changed the subject: config to make the rotation gesture to move between tabs and it worked great for well over a year. It now behaves properly, as described here:

    https://Bugzilla.Mozilla.org/show_bug.cgi?id=877598

    It used to be very controllable move a tab on, now it is erratic and moves quickly and the unexpected tabs regardless of the slowness, I do the gesture of rotation. It's the main reason I use Firefox on Chrome and I will continue to do so unless there is no solution for this.

    Just put the browser.gesture.twist.threshold to something around 15-25.

  • How to reset the default mail program? When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens.

    How to reset the default mail program? Got msn.com. Now, I went to q.com. When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens. Now, I get an error message: rundll32.exe - bad Image, followed by a message the the appklication or the DLL C:\Program FIles\MSN\MSNSharedFIles\MAILMAPI. DLL is not a valid Windows image. Please check against oyur installatiion diskette. I have msn unisnstalled.

    I can access my e-mail through hotmail msn, but no linger to subscribe to msn premium.

    original title: default e-mail program

    Hi PAULKRISSEL,

    This function is not supported natively in Windows. You may may find a third of the program that will change the default to q.com.

    WARNING:
    Microsoft provides no assurance or warranty, implied or otherwise and is not responsible for the download you receive from the sites of third parties or support related to the download or the downloaded technology. If you need assistance dealing with third party technology, please contact directly the manufacturer.

  • How to reset the System Volume Information folder?

    I would like to know how to reset the System Volume Information folder to empty all the potential viruses.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions :>

    I use cleanmgr /sagerun:1 of the dialog box run when you use a switch.

    However, I usually just use these instructions.

Maybe you are looking for