Should flagged drafts be included in archive.
Should flagged drafts be included in inbox.
Optional
loadAction group to load in Action Bar when applying the workspace.
Optional
loadAction group to load in action list when applying the workspace.
Optional
loadFolder tab to select when applying the workspace.
Optional
preferredPreferred dark theme to load when applying the workspace.
Optional
preferredPreferred light theme to load when applying the workspace.
Show date information in list.
Show last logged action for draft in list.
Show preview of draft body in list.
Show draft tags in list.
A QueryDate specifying a date which all drafts in the workspace must be less than or equal to.
Filter by flagged status of drafts.
Search string to filter results.
A QueryDate specifying a date which all drafts in the workspace must be greater than or equal to.
Comma-delimited list tag string like "blue, !green" using "!" to omit a tag.
If true
, all (AND) tags in the tag filter must match, if false
match any of the tags (OR)
Readonly
installURLURL which can be used to install this Workspace in another installation of Drafts. Useful for sharing and backups.
The name of the workspace.
Set sort order for "all" drafts folder.
Set sort order for archive.
Set sort order for flagged.
Set sort order for inbox.
Represents a Workspace. Can be used to inquire and load workspaces and apply them using methods on the App object.
Note that is can also be useful in script to create and load temporary workspaces to apply filters or query drafts. If you create a new
Workspace
object and never callupdate()
that workspace will not be saved after the end of an action's execution.Example
Find and Load Workspace