You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**`mark_as_spam`** - When a conversation(s) is marked as spam
173
173
-**`mark_as_not_spam`** - When a conversation(s) is unchecked as spam
174
174
-**`label`** - When a conversation(s) get applied a label
175
-
-**`archive`** - When a conversation(s) is archieved
175
+
-**`archive`** - When a conversation(s) is archived
176
176
-**`move_to_inbox`** - When a conversation(s) is moved to the inbox
177
177
-**`delete_forever`** - When a conversation(s) is deleted forever
178
178
-**`star`** - When a conversation(s) is starred
@@ -186,7 +186,7 @@ import "gmail-js";
186
186
-**`add_to_tasks`** - When an item is added to google tasks
187
187
-**`move_label`** - When a conversation(s) is moved to a label folder
188
188
-**`save_draft`** - When a draft is saved
189
-
-**`discard_draft`** - When a draft is dicarded
189
+
-**`discard_draft`** - When a draft is discarded
190
190
-**`send_message`** - When a message is sent (except scheduled messages)
191
191
-**`send_scheduled_message`** - When a message is scheduled for sending (but not actually sent)
192
192
-**`expand_categories`** - When a category is expanded from the left nav sidebar
@@ -600,7 +600,7 @@ Returns `True` if user has multiple inbox lab enabled, `False` otherwise
600
600
601
601
#### gmail.check.is_horizontal_split()
602
602
603
-
Returns `True` if the pane split mode is horiontal`False` otherwise
603
+
Returns `True` if the pane split mode is horizontal`False` otherwise
604
604
605
605
#### gmail.check.are_shortcuts_enabled()
606
606
@@ -717,7 +717,7 @@ The items contain the sent requested parameterized data
717
717
#### gmail.observe.actions()
718
718
719
719
Similar to `gmail.observe.http_requests()` this keeps track of the last 10 gmail actions (vs all http requests).
720
-
Actions here correspond to things like clicking refres, archiving, deleting, starring etc.
720
+
Actions here correspond to things like clicking refresh, archiving, deleting, starring etc.
721
721
722
722
#### gmail.observe.on(action, callback)
723
723
@@ -743,7 +743,7 @@ Your callback will be fired directly after Gmail's XMLHttpRequest has been sent
743
743
-**mark_as_spam** - When a conversation(s) is marked as spam
744
744
-**mark_as_not_spam** - When a conversation(s) is unchecked as spam
745
745
-**label** - When a conversation(s) get applied a label
746
-
-**archive** - When a conversation(s) is archieved
746
+
-**archive** - When a conversation(s) is archived
747
747
-**move_to_inbox** - When a conversation(s) is moved to the inbox
748
748
-**delete_forever** - When a conversation(s) is deleted forever
749
749
-**star** - When a conversation(s) is starred
@@ -757,23 +757,23 @@ Your callback will be fired directly after Gmail's XMLHttpRequest has been sent
757
757
-**add_to_tasks** - When an item is added to google tasks
758
758
-**move_label** - When a conversation(s) is moved to a label folder
759
759
-**save_draft** - When a draft is saved
760
-
-**discard_draft** - When a draft is dicarded
760
+
-**discard_draft** - When a draft is discarded
761
761
-**send_message** - When a message is sent (except scheduled messages)
762
762
-**send_scheduled_message** - When a message is scheduled for sending (but not actually sent)
763
763
-**expand_categories** - When a category is expanded from the left nav sidebar
764
764
-**restore_message_in_thread** - When a deleted message is restored inside a thread
765
765
-**delete_label** - When a label is deleted
766
766
-**show_newly_arrived_message** - When inside an email and a new email arrives in the thread
767
767
768
-
The on method also supports observering specific DOM events in the Gmail Interface (for example when a new compose window is opened). These are only available via the `on` method (not the `before` or `after` methods).
768
+
The on method also supports observing specific DOM events in the Gmail Interface (for example when a new compose window is opened). These are only available via the `on` method (not the `before` or `after` methods).
769
769
770
770
**Available DOM Actions/Observers**
771
771
772
772
-**load** - When the gmail interface has completed loading
773
773
-**compose** - When a new compose window opens, or a message is replied to or forwarded
774
774
-**compose_cancelled** - When an existing compose window is closed.
775
775
-**recipient_change** - When the recipient (to, cc or bcc) is changed when composing a new email or replying/forwarding an email
776
-
-**view_thread** - When a new coversation thread is opened
776
+
-**view_thread** - When a new conversation thread is opened
777
777
-**view_email** - When an individual email is loaded within a thread (also fires when thread loads displaying the latest email)
778
778
-**load_email_menu** - When the dropdown menu next to the reply button is clicked
779
779
@@ -1022,7 +1022,7 @@ Simple:
1022
1022
1023
1023
Complex:
1024
1024
- action - the name of the new DOM observer
1025
-
- args - an object containin properties for each of the supported DOM observer configuration agruments:
1025
+
- args - an object containing properties for each of the supported DOM observer configuration arguments:
1026
1026
- class - the class of an inserted DOM element that identifies that this action should be triggered
1027
1027
- selector - if you need to match more than just the className of a specific element to indicate a match, you can use this selector for further checking (uses element.is(selector) on matched element). E.g. if there are multiple elements with a class indicating an observer should fire, but you only want it to fire on a specific id, then you would use this
1028
1028
- sub_selector - if specified, we do a jquery element.find for the passed selector on the inserted element and ensure we can find a match
@@ -1073,7 +1073,7 @@ Returns basic data for all the messages currently visible in the messages view.
1073
1073
1074
1074
### gmail.dom.compose(compose_el)
1075
1075
1076
-
An object used to abstract interation with a compose popup.
1076
+
An object used to abstract interaction with a compose popup.
1077
1077
Represents a compose window in the DOM and provides a bunch of methods and properties to access & interact with the window.
1078
1078
1079
1079
Expects a jQuery DOM element for the compose div.
@@ -1376,7 +1376,7 @@ individual email IDs.
1376
1376
**Note: This method can only be used with other deprecated methods,
1377
1377
and is itself deprecated. Use `gmail.new.get.email_id()` instead.**
1378
1378
1379
-
Same as `gmail.get.thread_id()`, but kept for compatibilty.
1379
+
Same as `gmail.get.thread_id()`, but kept for compatibility.
0 commit comments