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
Copy file name to clipboardExpand all lines: src/utils/meatballs.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ const meatballItems = {
15
15
16
16
/**
17
17
* Add a custom button to posts' meatball menus.
18
-
* @param {object} options - Destructured
19
-
* @param {string} options.id - Identifier for this button (must be unique)
20
-
* @param {string|Function} options.label - Button text to display. May be a function accepting the timelineObject data of the post element being actioned on.
21
-
* @param {Function} options.onclick - Button click listener function
22
-
* @param {Function} [options.postFilter] - Filter function, called with the timelineObject data of the post element being actioned on. Must return true for button to be added
18
+
* @param {object} options Destructured
19
+
* @param {string} options.id Identifier for this button (must be unique)
20
+
* @param {string|Function} options.label Button text to display. May be a function accepting the timelineObject data of the post element being actioned on.
21
+
* @param {Function} options.onclick Button click listener function
22
+
* @param {Function} [options.postFilter] Filter function, called with the timelineObject data of the post element being actioned on. Must return true for button to be added
* Add a custom button to blogs' meatball menus in blog cards and the blog view header.
36
-
* @param {object} options - Destructured
37
-
* @param {string} options.id - Identifier for this button (must be unique)
38
-
* @param {string|Function} options.label - Button text to display. May be a function accepting the blog data of the post element being actioned on.
39
-
* @param {Function} options.onclick - Button click listener function
40
-
* @param {Function} [options.blogFilter] - Filter function, called with the blog data of the menu element being actioned on. Must return true for button to be added. Some blog data fields, such as "followed", are not available in blog cards.
36
+
* @param {object} options Destructured
37
+
* @param {string} options.id Identifier for this button (must be unique)
38
+
* @param {string|Function} options.label Button text to display. May be a function accepting the blog data of the post element being actioned on.
39
+
* @param {Function} options.onclick Button click listener function
40
+
* @param {Function} [options.blogFilter] Filter function, called with the blog data of the menu element being actioned on. Must return true for button to be added. Some blog data fields, such as "followed", are not available in blog cards.
0 commit comments