mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 12:17:12 +00:00
DOC: document addShortcut click option (#12467)
This commit is contained in:
parent
4857891ecf
commit
c3e76da90a
@ -194,6 +194,8 @@ export default {
|
||||
* - path - a specific path to limit the shortcut to .e.g /latest
|
||||
* - postAction - binds the shortcut to fire the specified post action when a
|
||||
* post is selected
|
||||
* - click - allows to provide a selector on which a click event
|
||||
* will be triggered, eg: { click: ".topic.last .title" }
|
||||
**/
|
||||
addShortcut(shortcut, callback, opts = {}) {
|
||||
// we trim but leave whitespace between characters, as shortcuts
|
||||
|
Loading…
x
Reference in New Issue
Block a user