Skip to content

Conversation

@crisbeto
Copy link
Member

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.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release labels Dec 15, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 15, 2019
@crisbeto crisbeto force-pushed the 17921/drag-drop-defaults branch from a6054c4 to 2874689 Compare December 15, 2019 12:34
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added blocked This issue is blocked by some external factor, such as a prerequisite PR pr: lgtm action: merge The PR is ready for merge by the caretaker labels Dec 16, 2019
@mmalerba mmalerba removed the blocked This issue is blocked by some external factor, such as a prerequisite PR label Jan 10, 2020
@crisbeto crisbeto force-pushed the 17921/drag-drop-defaults branch from 2874689 to 3737773 Compare January 12, 2020 15:54
* 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');
Copy link
Member

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?

Copy link
Member Author

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.

@crisbeto crisbeto force-pushed the 17921/drag-drop-defaults branch from 3737773 to 9e4b79a Compare January 16, 2020 20:06
@jelbourn
Copy link
Member

@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.
@crisbeto crisbeto force-pushed the 17921/drag-drop-defaults branch from 9e4b79a to 18400b6 Compare January 23, 2020 06:01
@crisbeto
Copy link
Member Author

Rebased.

@jelbourn jelbourn merged commit 4667cd4 into angular:master Jan 24, 2020
yifange pushed a commit to yifange/components that referenced this pull request Jan 30, 2020
…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.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDK Drag-Drop - Object Configuration on attributes

4 participants