AppEvents
The AppEvent system in Discourse provides a pub/sub mechanism for handling UI updates and component interactions - and these events are triggered via calls of AppEvent.trigger.
This topic consolidates a list of all such event triggers and their arguments, along with line-of-code references to the Discourse source code.
How to figure out what happens on an event trigger
AppEvent is based on the Ember’s Evented class, and similarly, events are handled by the on method.
Once the specific AppEvent trigger is identified, you may search in the source code for the corresponding .on method with the event name as the first argument.
This method should have an event handler function passed in as the last argument for executing any necessary logic upon trigger of the event.
Taking the composer:open event, we can search for appEvents.on("composer:open". This could lead us to 1 or more places in the code where the event is handled. Each of these would execute a callback function whenever the event is triggered, for example:
this.appEvents.on("composer:opened", this, this._findMessages);
You would then refer to the definition of the callback function this._findMessages to understand what happens when the composer:opened event is triggered. This callback function can take in arguments passed in from the trigger of the event to be processed within the scope of the function.
List of AppEvent Triggers
ace
ace:resize 
No arguments passed to this event.
bookmarks
bookmarks:changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | bookmarkFormData.saveData | property | True | - |
| 2 | this.bookmarkModel.attachedTo | called_function | True | - |
Detailed List
/app/assets/javascripts/discourse/app/components/bookmark-list.js#40 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | null | null | - |
| 2 | bookmark.attachedTo | called_function | - |
/app/assets/javascripts/discourse/app/components/bookmark-list.js#78 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | savedData | variable | - |
| 2 | bookmark.attachedTo | called_function | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#1365 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | bookmarkFormData.saveData | property | - |
| 2 | bookmark.attachedTo | called_function | - |
/app/assets/javascripts/discourse/app/lib/topic-bookmark-manager.js#57 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | bookmarkFormData.saveData | property | - |
| 2 | this.bookmarkModel.attachedTo | called_function | - |
/app/assets/javascripts/discourse/app/models/post.js#588 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | data | variable | - |
| 2 | objectArg2 | object | - |
| - | objectArg2.target | string | - |
| - | objectArg2.targetId | property | - |
/app/assets/javascripts/discourse/app/models/post.js#609 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | null | null | - |
| 2 | objectArg2 | object | - |
| - | objectArg2.target | string | - |
| - | objectArg2.targetId | property | - |
/app/assets/javascripts/discourse/app/models/topic.js#695 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | null | null | - |
| 2 | bookmark.attachedTo | called_function | - |
/plugins/chat/assets/javascripts/discourse/lib/chat-message-interactor.js#346 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | bookmarkFormData.saveData | property | - |
| 2 | bookmark.attachedTo | called_function | - |
card
card:close 
No arguments passed to this event.
card:hide 
No arguments passed to this event.
card:show 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | username | variable | True | - |
| 2 | target | variable | True | - |
| 3 | event | variable | True | - |
chat
chat:message_interaction 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | result1.interaction | property | True | - |
chat:modify-selection 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | event | variable | True | - |
| 2 | objectArg2 | object | True | - |
| - | objectArg2.type | variable | True | - |
| - | objectArg2.context | property | True | - |
chat:open-insert-link-modal 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | event | variable | True | - |
| 2 | objectArg2 | object | True | - |
| - | objectArg2.context | property | True | - |
chat:open-url 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | url | variable | True | - |
chat:refresh-channel-members 
No arguments passed to this event.
chat:rerender-header 
No arguments passed to this event.
chat:toggle-close 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | event | variable | False | - |
Detailed List
/plugins/chat/assets/javascripts/discourse/initializers/chat-keyboard-shortcuts.js#110 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | event | variable | - |
/plugins/chat/assets/javascripts/discourse/routes/chat.js#53 
No arguments passed to this event.
chat:toggle-expand 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this.chatStateManager.isDrawerExpanded | property | True | - |
Detailed List
/plugins/chat/assets/javascripts/discourse/components/chat-drawer.js#208 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | this.chatStateManager.isDrawerExpanded | property | - |
/plugins/chat/assets/javascripts/discourse/services/chat.js#452 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | this.chatStateManager.isDrawerExpanded | property | - |
composer
composer:cancel-upload 
No arguments passed to this event.
composer:cancelled 
No arguments passed to this event.
Detailed List
/app/assets/javascripts/discourse/app/services/composer.js#1605 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/services/composer.js#1613 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/services/composer.js#1626 
No arguments passed to this event.
composer:created-post 
No arguments passed to this event.
composer:div-resizing 
No arguments passed to this event.
composer:edited-post 
No arguments passed to this event.
composer:find-similar 
No arguments passed to this event.
composer:insert-block 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | quotedText.trim | called_function | True | - |
Detailed List
/app/assets/javascripts/discourse/app/controllers/topic.js#473 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | quotedText | variable | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#694 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | quotedText.trim | called_function | - |
composer:insert-text 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | document.activeElement.href | property | True | - |
| 2 | objectArg2 | object | True | - |
| - | objectArg2.ensureSpace | boolean | True | - |
composer:open 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.model | property | True | - |
composer:opened 
No arguments passed to this event.
composer:reply-reloaded 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this | this | True | - |
Detailed List
/app/assets/javascripts/discourse/app/models/composer.js#969 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | this | this | - |
/app/assets/javascripts/discourse/app/models/composer.js#988 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | this | this | - |
composer:resize-ended 
No arguments passed to this event.
composer:resize-started 
No arguments passed to this event.
composer:resized 
No arguments passed to this event.
composer:saved 
No arguments passed to this event.
composer:toolbar-popup-menu-button-clicked 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | menuItem | variable | True | - |
composer:typed-reply 
No arguments passed to this event.
this.composerEventPrefix:all-uploads-complete 
No arguments passed to this event.
this.composerEventPrefix:apply-surround 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | [grid] | string | True | - |
| 2 | [/grid] | string | True | - |
| 3 | grid_surround | string | True | - |
| 4 | objectArg4 | object | True | - |
| - | objectArg4.useBlockMode | boolean | True | - |
Detailed List
/app/assets/javascripts/discourse/app/components/composer-editor.js#769 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | [grid] | string | - |
| 2 | [/grid] | string | - |
| 3 | grid_surround | string | - |
| 4 | objectArg4 | object | - |
| - | objectArg4.useBlockMode | boolean | - |
/app/assets/javascripts/discourse/app/lib/uppy/composer-upload.js#684 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | [grid] | string | - |
| 2 | [/grid] | string | - |
| 3 | grid_surround | string | - |
| 4 | objectArg4 | object | - |
| - | objectArg4.useBlockMode | boolean | - |
this.composerEventPrefix:closed 
No arguments passed to this event.
this.composerEventPrefix:replace-text 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | matchingPlaceholder.index | property | True | - |
| 2 | replacement | variable | True | - |
| 3 | objectArg3 | object | False | - |
| - | objectArg3.regex | variable | False | - |
| - | objectArg3.index | variable | False | - |
Detailed List
/app/assets/javascripts/discourse/app/components/composer-editor.js#610 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | matchingPlaceholder.index | property | - |
| 2 | replacement | variable | - |
| 3 | objectArg3 | object | - |
| - | objectArg3.regex | variable | - |
| - | objectArg3.index | variable | - |
/app/assets/javascripts/discourse/app/components/composer-editor.js#654 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | match | variable | - |
| 2 | replacement | variable | - |
/app/assets/javascripts/discourse/app/components/composer-editor.js#741 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | matchingPlaceholder.index | property | - |
| 2 | string | string | - |
| 3 | objectArg3 | object | - |
| - | objectArg3.regex | variable | - |
| - | objectArg3.index | variable | - |
this.composerEventPrefix:upload-cancelled 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | file.id | property | True | - |
this.composerEventPrefix:upload-error 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | file | variable | True | - |
this.composerEventPrefix:upload-started 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | file.name | property | True | - |
this.composerEventPrefix:upload-success 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | file.name | property | True | - |
| 2 | upload | variable | True | - |
this.composerEventPrefix:uploads-aborted 
No arguments passed to this event.
Detailed List
/app/assets/javascripts/discourse/app/lib/uppy/composer-upload.js#130 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/lib/uppy/composer-upload.js#177 
No arguments passed to this event.
this.composerEventPrefix:uploads-cancelled 
No arguments passed to this event.
this.composerEventPrefix:uploads-preprocessing-complete 
No arguments passed to this event.
this.composerEventPrefix:will-close 
No arguments passed to this event.
this.composerEventPrefix:will-open 
No arguments passed to this event.
composer-messages
composer-messages:close 
No arguments passed to this event.
composer-messages:create 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.extraClass | string | True | - |
| - | objectArg1.templateName | string | True | - |
| - | objectArg1.body | called_function | True | - |
Detailed List
/app/assets/javascripts/discourse/app/services/composer.js#767 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.extraClass | string | - |
| - | objectArg1.templateName | string | - |
| - | objectArg1.body | called_function | - |
/app/assets/javascripts/discourse/app/services/composer.js#777 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.extraClass | string | - |
| - | objectArg1.templateName | string | - |
| - | objectArg1.body | called_function | - |
/app/assets/javascripts/discourse/app/services/composer.js#956 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.extraClass | string | - |
| - | objectArg1.templateName | string | - |
| - | objectArg1.body | variable | - |
/app/assets/javascripts/discourse/app/services/composer.js#980 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.extraClass | string | - |
| - | objectArg1.templateName | string | - |
| - | objectArg1.body | variable | - |
/app/assets/javascripts/discourse/app/services/composer.js#989 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.extraClass | string | - |
| - | objectArg1.templateName | string | - |
| - | objectArg1.body | called_function | - |
count-updated
count-updated:user.username_lower:key 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | value | variable | True | - |
cta
cta:shown 
No arguments passed to this event.
d-editor
d-editor:preview-click-group-card 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | event.target | property | True | - |
| 2 | event | variable | True | - |
d-editor:preview-click-user-card 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | event.target | property | True | - |
| 2 | event | variable | True | - |
d-editor:toolbar-button-clicked 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | button | variable | True | - |
destroyed-custom-html
destroyed-custom-html:this.name 
No arguments passed to this event.
discourse
discourse:focus-changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | session.hasFocus | property | True | - |
do-not-disturb
do-not-disturb:changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this.do_not_disturb_until | property | True | - |
dom
dom:clean 
No arguments passed to this event.
draft
draft:destroyed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | key | variable | True | - |
emoji-picker
emoji-picker:close 
No arguments passed to this event.
full-page-search
full-page-search:trigger-search 
No arguments passed to this event.
group
group:join 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | group | variable | True | - |
group:leave 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | model | variable | True | - |
header
header:hide-topic 
No arguments passed to this event.
header:keyboard-trigger 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.type | string | True | - |
| - | objectArg1.event | variable | False | - |
Detailed List
/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js#449 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.type | string | - |
| - | objectArg1.event | variable | - |
/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js#520 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.type | string | - |
| - | objectArg1.event | variable | - |
/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js#529 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.type | string | - |
| - | objectArg1.event | variable | - |
/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js#536 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.type | string | - |
| - | objectArg1.event | variable | - |
/app/assets/javascripts/discourse/app/services/search.js#49 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.type | string | - |
header:show-topic 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | topic | variable | True | - |
header:update-topic 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | composer.topic | property | True | - |
Detailed List
/app/assets/javascripts/discourse/app/controllers/topic.js#1739 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | topic | variable | - |
/app/assets/javascripts/discourse/app/instance-initializers/subscribe-user-notifications.js#163 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | null | null | - |
| 2 | 5000 | integer | - |
/app/assets/javascripts/discourse/app/routes/topic.js#420 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | model | variable | - |
/app/assets/javascripts/discourse/app/services/composer.js#1176 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | composer.topic | property | - |
inserted-custom-html
inserted-custom-html:this.name 
No arguments passed to this event.
keyboard
keyboard:move-selection 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.articles | variable | True | - |
| - | objectArg1.selectedArticle | variable | True | - |
notifications
notifications:changed 
No arguments passed to this event.
Detailed List
/app/assets/javascripts/discourse/app/instance-initializers/subscribe-user-notifications.js#155 
No arguments passed to this event.
/plugins/chat/assets/javascripts/discourse/services/chat-tracking-state-manager.js#110 
No arguments passed to this event.
page
page:changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.url | variable | True | - |
| - | objectArg1.title | called_function | True | - |
| - | objectArg1.currentRouteName | property | True | - |
| - | objectArg1.replacedOnlyQueryParams | variable | True | - |
page:compose-reply 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | topic | variable | True | - |
page:like-toggled 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | post | variable | True | - |
| 2 | likeAction | variable | True | - |
page:topic-loaded 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | topic | variable | True | - |
poll
poll:voted 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | poll1 | variable | True | - |
| 2 | this.post | property | True | - |
| 3 | this.vote | property | True | - |
Detailed List
/plugins/poll/assets/javascripts/discourse/components/poll.gjs#190 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | poll1 | variable | - |
| 2 | this.post | property | - |
| 3 | this.vote | property | - |
/plugins/poll/assets/javascripts/discourse/components/poll.gjs#448 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | poll1 | variable | - |
| 2 | this.post | property | - |
| 3 | this.vote | property | - |
post
post:created 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | createdPost | variable | True | - |
post:highlight 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | result.payload.post_number | property | True | - |
| 2 | options | variable | False | - |
Detailed List
/app/assets/javascripts/discourse/app/lib/url.js#356 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | closest | variable | - |
/app/assets/javascripts/discourse/app/routes/topic-from-params.js#98 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | closest | variable | - |
/app/assets/javascripts/discourse/app/services/composer.js#1184 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | result.payload.post_number | property | - |
| 2 | options | variable | - |
post:show-revision 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | copy.postNumber | property | True | - |
| 2 | copy.revisionNumber | property | True | - |
post-stream
post-stream:filter-replies 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.topic_id | called_function | True | - |
| - | objectArg1.post_number | variable | True | - |
| - | objectArg1.post_id | variable | True | - |
post-stream:filter-show-all 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this.attrs.streamFilters | property | True | - |
post-stream:filter-upwards 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.topic_id | called_function | True | - |
| - | objectArg1.post_id | variable | True | - |
post-stream:gap-expanded 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.post_id | property | True | - |
post-stream:posted 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | staged | variable | True | - |
post-stream:refresh 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | args | variable | False | - |
Detailed List
/app/assets/javascripts/discourse/app/components/invite-panel.js#340 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/components/invite-panel.js#353 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.force | boolean | - |
/app/assets/javascripts/discourse/app/components/modal/history.js#190 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | variable | - |
/app/assets/javascripts/discourse/app/components/search-menu.js#304 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.force | boolean | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#112 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.force | boolean | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#296 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.force | boolean | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#734 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/controllers/topic.js#901 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | variable | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#1406 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | property | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#1723 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | args | variable | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#1873 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | called_function | - |
/app/assets/javascripts/discourse/app/lib/flag-targets/flag.js#26 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | property | - |
/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js#623 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | variable | - |
/app/assets/javascripts/discourse/app/lib/post-bookmark-manager.js#60 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | property | - |
/app/assets/javascripts/discourse/app/models/composer.js#1098 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | property | - |
/app/assets/javascripts/discourse/app/models/composer.js#1110 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | property | - |
/app/assets/javascripts/discourse/app/models/post-stream.js#284 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/models/post-stream.js#304 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/models/post-stream.js#438 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/models/post.js#592 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | property | - |
/app/assets/javascripts/discourse/app/services/composer.js#1165 
No arguments passed to this event.
/app/assets/javascripts/discourse/app/services/composer.js#1172 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.id | called_function | - |
/app/assets/javascripts/discourse/app/services/composer.js#1179 
No arguments passed to this event.
quote-button
quote-button:edit 
No arguments passed to this event.
quote-button:quote 
No arguments passed to this event.
sidebar-hamburger-dropdown
sidebar-hamburger-dropdown:rendered 
No arguments passed to this event.
site-header
site-header:force-refresh 
No arguments passed to this event.
this.eventPrefix
this.eventPrefix:insert-text 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | markdown | variable | True | - |
Detailed List
/app/assets/javascripts/discourse/app/lib/textarea-text-manipulation.js#429 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | table | variable | - |
/app/assets/javascripts/discourse/app/lib/textarea-text-manipulation.js#483 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | markdown | variable | - |
topic
topic:created 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | createdPost | variable | True | - |
| 2 | this | this | True | - |
topic:current-post-changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.post | variable | True | - |
topic:current-post-scrolled 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.postIndex | property | True | - |
| - | objectArg1.percent | called_function | True | - |
topic:jump-to-post 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this.get | called_function | True | - |
Detailed List
/app/assets/javascripts/discourse/app/controllers/topic.js#952 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | this.get | called_function | - |
/app/assets/javascripts/discourse/app/controllers/topic.js#1333 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | postId | variable | - |
topic:keyboard-trigger 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.type | string | True | - |
topic:scrolled 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | offset | variable | True | - |
topic:timings-sent 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | data | variable | True | - |
topic-entrance
topic-entrance:show 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.topic | variable | True | - |
| - | objectArg1.position | called_function | True | - |
Detailed List
/app/assets/javascripts/discourse/app/components/basic-topic-list.js#109 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.topic | variable | - |
| - | objectArg1.position | called_function | - |
/app/assets/javascripts/discourse/app/components/featured-topic.js#13 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.topic | property | - |
| - | objectArg1.position | called_function | - |
/app/assets/javascripts/discourse/app/components/topic-list-item.js#35 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | objectArg1 | object | - |
| - | objectArg1.topic | property | - |
| - | objectArg1.position | called_function | - |
topic-header
topic-header:trigger-this.args.type-card 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this.args.username | property | True | - |
| 2 | e1.target | property | True | - |
| 3 | e1 | variable | True | - |
upload-mixin
upload-mixin:this.config.id:all-uploads-complete 
No arguments passed to this event.
upload-mixin:this.config.id:in-progress-uploads 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | this.inProgressUploads | property | True | - |
upload-mixin:this.config.id:upload-cancelled 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | file.id | property | True | - |
upload-mixin:this.config.id:upload-success 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | file.name | property | True | - |
| 2 | completeResponse | variable | True | - |
Detailed List
/app/assets/javascripts/discourse/app/lib/uppy/uppy-upload.js#249 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | file.name | property | - |
| 2 | completeResponse | variable | - |
/app/assets/javascripts/discourse/app/lib/uppy/uppy-upload.js#270 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | file.name | property | - |
| 2 | upload | variable | - |
upload-mixin:this.config.id:uploads-cancelled 
No arguments passed to this event.
user-card
user-card:after-show 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.user | variable | True | - |
user-card:show 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.username | variable | True | - |
user-drafts
user-drafts:changed 
No arguments passed to this event.
user-menu
user-menu:notification-click 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.notification | property | True | - |
| - | objectArg1.href | property | True | - |
user-menu:rendered 
No arguments passed to this event.
user-menu:tab-click 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | tab.id | property | True | - |
user-reviewable-count
user-reviewable-count:changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | count | variable | True | - |
user-status
user-status:changed 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | data | variable | True | - |
user-stream
user-stream:new-item-inserted 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | element1 | variable | True | - |
other events
click-tracked 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | href | variable | True | - |
decorate-non-stream-cooked-element 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | cookedElement | variable | True | - |
Detailed List
/app/assets/javascripts/discourse/app/components/composer-editor.js#511 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | preview | variable | - |
/app/assets/javascripts/discourse/app/components/d-editor.js#260 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | cookedElement | variable | - |
/app/assets/javascripts/discourse/app/components/discourse-banner.gjs#47 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | element1 | variable | - |
/app/assets/javascripts/discourse/app/components/user-stream.gjs#44 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | element1 | variable | - |
/app/assets/javascripts/discourse/app/components/user-stream.gjs#139 
| Position | Argument | Type | Description |
|---|---|---|---|
| 1 | element1 | variable | - |
desktop-notification-opened 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.url | property | True | - |
keyboard-visibility-change 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | keyboardVisible | variable | True | - |
push-notification-opened 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | objectArg1 | object | True | - |
| - | objectArg1.url | property | True | - |
REFRESH_USER_SIDEBAR_CATEGORIES_SECTION_COUNTS_APP_EVENT_NAME 
No arguments passed to this event.
this.flagCreatedEvent 
| Position | Argument | Type | Always Present | Description |
|---|---|---|---|---|
| 1 | flagModal.args.model.flagModel | property | True | - |
| 2 | postAction | variable | True | - |
| 3 | opts | variable | True | - |
This document is version controlled - suggest changes on github.