Tab ‹ Chocolat API

Tab.current()

Class method that returns the current, active tab.

Returns Tab – the active tab.

.window()

The window which the tab is part of

Returns MainWindow – the parent MainWindow.

.editors()

Get a list of all visible editors in the tab.

Returns Array – an array of visible `Editor`s.

.currentEditor()

Get the active editor in this tab.

Returns Editor – the current editor.

.activeDocuments()

Get a list of all the documents in the "Active" part of the sidebar.

Returns Array – an array containing the active `Document`s

.visibleDocuments()

A list of all the Documents currently visible in this tab.

Returns Array – an array containing the visible `Document`s

.storage()

Access the storage object of the Tab (see Storage class).

Returns Storage – the storage.