-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(drag-drop): add injection token for configuring the input defaults #17970
Conversation
a6054c4
to
2874689
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2874689
to
3737773
Compare
* Injection token that can be used to configure the | ||
* behavior of the drag&drop-related components. | ||
*/ | ||
export const CDK_DRAG_CONFIG = new InjectionToken<DragDropConfig>('CDK_DRAG_CONFIG'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CDK_DRAG_DEFAULT_OPTIONS
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a breaking change since CDK_DRAG_CONFIG
is already in master.
3737773
to
9e4b79a
Compare
@crisbeto passes presubmit, just needs rebase |
Adds an injection token that allows consumers to change the defaults of the various options in the `drag-drop` module. Also moves some repeated inline types into shared ones. Fixes angular#17921.
9e4b79a
to
18400b6
Compare
Rebased. |
…ts (angular#17970) Adds an injection token that allows consumers to change the defaults of the various options in the `drag-drop` module. Also moves some repeated inline types into shared ones. Fixes angular#17921.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds an injection token that allows consumers to change the defaults of the various options in the
drag-drop
module. Also moves some repeated inline types into shared ones.Fixes #17921.