WorkspaceStore
Summary
The WorkspaceStore manages Sheets and layout modes in the application.
Observing the WorkspaceStore makes it easy to monitor the sheet stack. To learn
more about sheets and layout in Mailspring, see the {InterfaceConcepts.md}
documentation.
Instance Methods
topSheet()
Returns
| Return Values |
| Returns The top {Sheet} in the current stack. Use this method to determine
the sheet the user is looking at. |
rootSheet()
Returns
| Return Values |
| Returns The {Sheet} at the root of the current stack. |
sheetStack()
Returns
| Return Values |
| Returns an {Array} The stack of sheets |
hiddenLocations()
Returns
| Return Values |
| Returns an {Array} of locations that have been hidden. |
isLocationHidden()
Returns
| Return Values |
| Returns a {Boolean} indicating whether the location provided is hidden.
You should provide one of the WorkspaceStore.Location constant values. |