toggleLibraryFile()
toggleLibraryFile(id?: string, show?: boolean)
Toggles a concrete file's open/close state.
If the file is currently opened, then it will be closed. And vice versa -> if the file is currently closed, then it will be opened. There is also an optional param to set a concrete target state, but you may use closeLibraryFile() and openLibraryFile() to achieve similar functionality.
Sample use case: You may have buttons in your integration to control file opening and closing.
Last updated