Last change
on this file since b738035 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago |
adding photos
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { NgZone, ElementRef } from '@angular/core';
|
---|
| 9 | import { ViewportRuler } from '@angular/cdk/scrolling';
|
---|
| 10 | import { DragRef, DragRefConfig } from './drag-ref';
|
---|
| 11 | import { DropListRef } from './drop-list-ref';
|
---|
| 12 | import { DragDropRegistry } from './drag-drop-registry';
|
---|
| 13 | /**
|
---|
| 14 | * Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
---|
| 15 | */
|
---|
| 16 | export declare class DragDrop {
|
---|
| 17 | private _document;
|
---|
| 18 | private _ngZone;
|
---|
| 19 | private _viewportRuler;
|
---|
| 20 | private _dragDropRegistry;
|
---|
| 21 | constructor(_document: any, _ngZone: NgZone, _viewportRuler: ViewportRuler, _dragDropRegistry: DragDropRegistry<DragRef, DropListRef>);
|
---|
| 22 | /**
|
---|
| 23 | * Turns an element into a draggable item.
|
---|
| 24 | * @param element Element to which to attach the dragging functionality.
|
---|
| 25 | * @param config Object used to configure the dragging behavior.
|
---|
| 26 | */
|
---|
| 27 | createDrag<T = any>(element: ElementRef<HTMLElement> | HTMLElement, config?: DragRefConfig): DragRef<T>;
|
---|
| 28 | /**
|
---|
| 29 | * Turns an element into a drop list.
|
---|
| 30 | * @param element Element to which to attach the drop list functionality.
|
---|
| 31 | */
|
---|
| 32 | createDropList<T = any>(element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
|
---|
| 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.