Hello lightning!

Hello lightning! I would like to close all other open folders when a folder is pressed except one other. Is this possible?

4 Commentsto Hello lightning!

  1. Either using the “Close other folders” option in the desktop settings (under Extra folder options), or with a script using LL.getOpenFolders(): iterate over the folders and call close() except for items with a specific id.

  2. Ashwin Royan says:

    Thanks Pierre. Close other folders closes the one I don’t want to close too. I’m sorry but I’m very new to JavaScript, would it be possible for you to tell me how to assign IDs to folders?

  3. Ashwin Royan says:

    If it’s not too much trouble or too long would you mind giving me an example of the script?

  4. Ashwin Royan says:

    Okay, i figured it out! thanks so much for the help

Leave a Reply

Your email address will not be published. Required fields are marked *