angular-cdk Questions

8

Solved

I would like to use the new Portal from material CDK to inject dynamic content in multiple part of a form. I have a complex form structure and the goal is to have a form that specify multiple plac...
Heterosporous asked 24/11, 2017 at 9:12

3

I am posting this question just to answer it myself in case anyone is struggling like I did! I'm working on an angular project to implement a Trello-like application. I want to be able to drag an e...

4

Solved

I am trying to implement an editor where one can drag an item to add it to the main content, the problem is that the source item is always destroyed when I'm dragging out of the source item contain...
Nenitanenney asked 13/5, 2019 at 13:57

15

I am working on mat-button-toggle-group for which I modified existing css by overwriting mat-button-toggle-checked class like below. Now, when I toggle between buttons the css is not working till I...
Hexose asked 23/2, 2018 at 18:15

2

I have an Angular 7 app, using CDK Drag-n-Drop to drag and drop rows in a very long list. What should I do to allow the long list to auto scroll when the dragged item out of the current view? A...
Scirrhus asked 24/4, 2019 at 0:25

3

I have a <div> element with position: absolute inside a container with position: relative. Its left and top properties are bound to data X and Y in the component.ts. My purpose is to move the...
Urbanist asked 11/4, 2020 at 13:29

3

I had to pass the overlayRef manually, is there a nicer way to include it in the components constructor with DI? service code: display() { const overlayRef = this.overlay.create({ positionStrat...
Hileman asked 18/9, 2019 at 3:11

8

Solved

I'm using angular material in my project and I'm using Mat-Table to render 1000 Product/row per table. When Change pagination (we use backend pagination) of table to 1000 rows the performance becom...

4

I want to customize a <cdk-virtual-scroll-viewport> by using the CSS class .cdk-virtual-scroll-content-wrapper so that the scroll container always shows a scrollbar. But my CSS code for this ...
Sternson asked 10/11, 2020 at 16:42

1

After doing some searching, I came to realize that I'm supposed to use the Flex-Layout library to make Material-themed UI responsive (as answered here). And according to the documentation, this lib...

2

This is the third question here on SO regarding "cdk dnd" and "nested"! I did not quite get the hacky suggestion of the other SO question. So here is a very basic and simple -> STACKBLITZ <- I...
Mismanage asked 15/1, 2019 at 0:3

4

Solved

I'm trying to use the Angular Material CDK DragDrop module from https://material.angular.io/cdk/drag-drop/overview With the cdkDropListDropped event I can prevent dropping but it shouldn't be drag...
Corium asked 13/11, 2018 at 11:16

3

I'm trying to provide scrolling while dragging a cdkDropList item. As of right now the page can't scroll without using the mousewheel to scroll. I was hoping to be able to just scroll through the p...

3

Solved

Has anyone been able to use virtual-scroll inside mat-select as shown below ? <mat-form-field> <mat-select placeholder="State"> <cdk-virtual-scroll-viewport autosize> ...
Raymond asked 10/9, 2018 at 22:44

6

I'm creating two CdkDropList objects and the dragging and dropping functionalities are working fine, my problem is that I would like to disable the sorting while I'm dragging in the first list. Let...
Limy asked 19/11, 2018 at 18:6

5

Solved

I am using the Angular Material CDK Drag and Drop Functionality in my application. The drag and drop functionality is working fine, unless I am using it within a dialog (for most components I am us...
Turnaround asked 3/4, 2020 at 15:5

3

I have angular material datasource. angular material version is ^5.0.3 Sorting is working. However for some columns it is sorting incorrectly. where number and text is there. For instance, sorted r...

4

In my Angular app, I'm using the autocomplete feature from Angular Material: It works fine, except when I scroll the page: Basically the dropdown does not stick in its position when scrolling...
Congest asked 25/2, 2020 at 15:54

7

Solved

I've created a "custom" theme, (using the theming documentation at https://material.angular.io/guide/theming, which is pretty bad) like this: @import '~@angular/material/theming'; @include mat-cor...
Mandorla asked 9/4, 2018 at 13:47

5

I am using linear mat-stepper. It works fine with next. I do api call & if it's success then i call stepper-next event instead of using matStepperNext directive. Now when user fills all data ...

1

UPDATE 11.07.2020 Issue on Github https://github.com/angular/components/issues/19401 ORIGINAL POST Is there a way to adjust the scroll speed when dragging an item down or up the list? In Firefox on...
Transliterate asked 1/7, 2020 at 7:41

1

Solved

I am trying to use Angular's CDK Drag & Drop feature and its working great, however I can't find documentation on how to snap to a grid. I found a GitHub issue that states that this feature has...
Pumping asked 10/2, 2021 at 6:33

2

Solved

It appears to have been activated when I examined the item. This class is:"cdk-drop-list-receiving". How do I do what I want not to be lost in any way? Thank you in advance. Alternative Image UR...
Izzo asked 22/8, 2019 at 18:42

4

Solved

I need to make an item draggable with angular-cdk. I have imported the DragDropModule in the app module. I am applying the cdkDrag inside an ngFor. <div *ngIf="messages.length" > <div *...
Dingo asked 3/6, 2019 at 12:29

7

Solved

I found this stackblitz example of adding drag-drop to a mat-table using angular cdk. However, the desired behavior is that the row is only draggable using the element with the cdkDragHandle direct...
Keratosis asked 6/3, 2019 at 16:53

© 2022 - 2024 — McMap. All rights reserved.