diff --git a/docs/AccountStore.html b/docs/AccountStore.html index 8635ec99f..7457e1bd8 100644 --- a/docs/AccountStore.html +++ b/docs/AccountStore.html @@ -1,6 +1,7 @@ --- layout: docs title: AccountStore +edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/account-store.coffee" ---
Returns the currently active Account. |
Search the user's contact list for the given search term.
This method compares the search
string against each Contact's
name
and email
.
-
+
String A search phrase, such as |
Optional
Object If you will only be displaying a few results, you should pass a limit value. searchContacts will return as soon as |
Creates a new Model Query for retrieving a single model specified by the class and id.
@@ -62,7 +63,7 @@ are in your displayed set before refreshing.
-
+
The class of the Model you're trying to retrieve. - + |
- + - + |
-
+
The class of the Model you're trying to retrieve. - + |
-
+
An Array of matcher objects. The set of predicates the returned model must match. - + |
-
+
The class of the Model you're trying to retrieve. - + |
-
+
An Array of matcher objects. The set of predicates the returned model must match. - + |
-
+
The class of the Model you're trying to retrieve. - + |
-
+
An Array of matcher objects. The set of predicates the returned model must match. - + |
-
+
The Model class desired. - + |
-
+
'arr' An Array with a mix of string model IDs and/or models. - + |
Executes a ModelQuery on the local database.
-
+
A ModelQuery to execute. - + |
-
+
A Model to write to the database. - + |
- + - + |
-
+
A Model to write to the database. - + |
Call this method when the DatabaseStore triggers and will impact the data maintained by this DatabaseView. In the future, the DatabaseView will @@ -45,7 +46,7 @@ for performance.
Need a destructor...
-
+
an Object with the following optional keys which can be used to optimize the behavior of the DatabaseView: - + |
Fetch a DraftStoreProxy for displaying and/or editing the
draft with clientId
.
-
+
The String clientId of the draft. - + |
-
+
A DraftStoreExtension instance. - + |
Unregisters the extension provided from the DraftStore.
-
+
A DraftStoreExtension instance. - + |
Inspect the draft, and return any warnings that need to be displayed before the draft is sent. Warnings should be string phrases, such as "without an attachment" that fit into a message of the form: "Send #{phase1} and #{phase2}?"
-
+
A fully populated Message object that is about to be sent. - + |
-
+
A function that's called when your toolbar button is clicked. This mutator function will be passed as its only argument the |
-
+
A one or two word description of what your icon does - + |
-
+
The url of your icon. It should be in the |
Override prepareNewDraft to modify a brand new draft before it is displayed in a composer. This is one of the only places in the application where it's safe @@ -139,12 +140,12 @@ is not possible with the current API, please let us know.
draft.pristine = false
so the draft saves, even if no further changes are made.
Override finalizeSessionBeforeSending in your DraftStoreExtension subclass to transform the DraftStoreProxy editing session just before the draft is sent. This method @@ -160,7 +161,7 @@ is not possible with the current API, please let us know.
-
+
A DraftStoreProxy for the draft. - + |
Override onMouseUp in your DraftStoreExtension subclass to listen for mouse up events sent to the composer's body text area. This @@ -190,7 +191,7 @@ is not possible with the current API, please let us know.
adjust selection ranges and change content as necessary.
-
+
The composer's contenteditable Node that received the event. - + |
-
+
The currently selected Range in the |
-
+
The mouse up event. - + |
Called when the user presses Shift-Tab
while focused on the composer's body field.
Override onFocusPrevious in your DraftStoreExtension to adjust the selection or perform
@@ -240,7 +241,7 @@ is not possible with the current API, please let us know.
event.preventDefault()
.
-
+
The composer's contenteditable Node that received the event. - + |
-
+
The currently selected Range in the |
-
+
The mouse up event. - + |
Called when the user presses Tab
while focused on the composer's body field.
Override onFocusPrevious in your DraftStoreExtension to adjust the selection or perform
@@ -290,7 +291,7 @@ is not possible with the current API, please let us know.
event.preventDefault()
.
-
+
The composer's contenteditable Node that received the event. - + |
-
+
The currently selected Range in the |
-
+
The mouse up event. - + |
Override onInput in your DraftStoreExtension subclass to implement custom behavior as the user types in the composer's @@ -345,14 +346,14 @@ is not possible with the current API, please let us know.
longer empty.onInput: (editableNode, event) ->
selection = document.getSelection()
-
+
isWithinNode = (node) ->
test = selection.baseNode
while test isnt editableNode
return true if test is node
test = test.parentNode
return false
-
+
codeTags = editableNode.querySelectorAll('code.var.empty')
for codeTag in codeTags
if selection.containsNode(codeTag) or isWithinNode(codeTag)
@@ -360,8 +361,3 @@ is not possible with the current API, please let us know.
-
+
The String name of a collection. Standard collections are listed above. - + |
-
+
The String name of a collection. Standard collections are listed above. - + |
-
+
The String name of a collection. Standard collections are listed above. - + |
-
+
The String name of a collection. Standard collections are listed above. - + |
Transform the message body HTML provided in body
and return HTML
that should be displayed for the message.
-
+
The string name of the task class, or the Task class itself. (ie: {SaveDraftTask} or 'SaveDraftTask') - + |
-
+
Optional An Object with criteria to pass to _.isMatch. For a SaveDraftTask, this could be {draftClientId: "123123"} - + |
Returns a matching Task, or null. |