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
add category option for context menus (#4144) (#4280)
* enhance grouping for context menu options
Signed-off-by: David Sinclair <david@sinclair.tech>
* change log
Signed-off-by: David Sinclair <david@sinclair.tech>
* remove type export
Signed-off-by: David Sinclair <david@sinclair.tech>
* revert border and prevent destroy options
Signed-off-by: David Sinclair <david@sinclair.tech>
* update comments for building panels
Signed-off-by: David Sinclair <dsincla@rei.com>
* build panels tests and more comments
Signed-off-by: David Sinclair <dsincla@rei.com>
* add category option for context menus
Signed-off-by: David Sinclair <dsincla@rei.com>
* changelog
Signed-off-by: David Sinclair <dsincla@rei.com>
* add order to groups
Signed-off-by: David Sinclair <dsincla@rei.com>
* documentation, shorter copyrighty, minor cleanup
Signed-off-by: David Sinclair <dsincla@rei.com>
* changelog
Signed-off-by: David Sinclair <dsincla@rei.com>
---------
Signed-off-by: David Sinclair <david@sinclair.tech>
Signed-off-by: David Sinclair <dsincla@rei.com>
Signed-off-by: Ashish Agrawal <ashish81394@gmail.com>
Co-authored-by: Ashish Agrawal <ashish81394@gmail.com>
(cherry picked from commit cb27336)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
# Conflicts:
# CHANGELOG.md
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardexpand all lines: src/plugins/ui_actions/README.md
+9
Original file line number
Diff line number
Diff line change
@@ -97,3 +97,12 @@ Use the UI actions explorer in the Developer examples to learn more about the se
97
97
```sh
98
98
yarn start --run-examples
99
99
```
100
+
101
+
## Action Properties
102
+
103
+
Refer to [./public/actions/action.ts](./public/actions/action.ts) for all properties, keeping in mind it extends the [presentable](./public/util/presentable.ts) interface. Here are some properties that provide special functionality and customization.
104
+
105
+
-`order` is used when there is more than one action matched to a trigger and within context menus. Higher numbers are displayed first.
106
+
-`getDisplayName` is a function that can return either a string or a JSX element. Returning a JSX element allows flexibility with formatting.
107
+
-`getIconType` can be used to add an icon before the display name.
108
+
-`grouping` determines where this item should appear as a submenu. Each group can also contain a category, which is used within context menus to organize similar groups into the same section of the menu. See examples explorer for more details about what this looks like within a context menu.
0 commit comments