Add functions to customize the Group
and Ungroup
buttons in the block contextual menu
#49674
+293
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #49675
This PR does not pass checks yet and doesn't have correct inline documentation yet. It's an idea I want to run past everyone first before putting in the effort to make it merge-able. It does, however, function.
What?
Add functions to customize the
Group
andUngroup
buttons in the block contextual menu.Why?
Since you can change the default block used to group blocks with
setGroupingBlockName
, you should be able to update the corresponding label in the UI as well.How?
This PR adds 2 publicly available functions to
set
andget
the label for the grouping and ungrouping action in the Block Contextual Menu, sets the default values, and uses the functions to display the actual label.Testing Instructions
Wrap in columns
as the option instead ofNest selection in a group
. Select the option.group
block, and see both options updated,Group
toNest selection in a group
andUngroup
toUngroup selection
Testing Instructions for Keyboard
Screenshots or screencast