( injector: Injector, element: ElementRef<HTMLElement> | HTMLElement, )
| 55 | * @param element Element to which to attach the drop list functionality. |
| 56 | */ |
| 57 | export function createDropListRef<T = unknown>( |
| 58 | injector: Injector, |
| 59 | element: ElementRef<HTMLElement> | HTMLElement, |
| 60 | ): DropListRef<T> { |
| 61 | return new DropListRef( |
| 62 | element, |
| 63 | injector.get(DragDropRegistry), |
| 64 | injector.get(DOCUMENT), |
| 65 | injector.get(NgZone), |
| 66 | injector.get(ViewportRuler), |
| 67 | ); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Reference to a drop list. Used to manipulate or dispose of the container. |
no test coverage detected