feat: support custom gutter template #360
Merged
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.
This adds support for custom gutter template customization.
There are three main features included:
A new structural directive to allow gutter template customization (
asSplitGutter
).The usage as follows:
The new
asSplitGutter
directive allows access to the following context:In case the gutter should have a drag handle allowing dragging only from it, a second directive is introduced -
asSplitGutterDragHandle
.The usage is:
In case a certain element inside the gutter should block dragging (a button for example), a third directive is introduced -
asSplitGutterExcludeFromDrag
.The usage is:
Implementation notes:
asSplitGutterDragHandle
can be declared on multiple elements which means all of them are drag handles.asSplitGutterExcludeFromDrag
can be declared on multiple elements which means all of them are excluded from drag.asSplitGutterExcludeFromDrag
insideasSplitGutterDragHandle
works as expected (all of the element is a handle except the excluded area)asSplitGutterDragHandle
insideasSplitGutterExcludeFromDrag
is ignored and the whole element marked with exclude is excluded.asSplitGutter
mostly requireswidth: 100%
andheight: 100%
in order to fill the whole gutter.gutterSize
input) the areas will overflow too. So attention is required to match the size of the gutter.Closes #344
Closes #266
Closes #227
Closes #163
Closes #361