source: trip-planner-front/node_modules/@angular/cdk/drag-drop/directives/drag-preview.d.ts@ 6fe77af

Last change on this file since 6fe77af was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 1.2 KB
Line 
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 */
8import { BooleanInput } from '@angular/cdk/coercion';
9import { InjectionToken, TemplateRef } from '@angular/core';
10/**
11 * Injection token that can be used to reference instances of `CdkDragPreview`. It serves as
12 * alternative token to the actual `CdkDragPreview` class which could cause unnecessary
13 * retention of the class and its directive metadata.
14 */
15export declare const CDK_DRAG_PREVIEW: InjectionToken<CdkDragPreview<any>>;
16/**
17 * Element that will be used as a template for the preview
18 * of a CdkDrag when it is being dragged.
19 */
20export declare class CdkDragPreview<T = any> {
21 templateRef: TemplateRef<T>;
22 /** Context data to be added to the preview template instance. */
23 data: T;
24 /** Whether the preview should preserve the same size as the item that is being dragged. */
25 get matchSize(): boolean;
26 set matchSize(value: boolean);
27 private _matchSize;
28 constructor(templateRef: TemplateRef<T>);
29 static ngAcceptInputType_matchSize: BooleanInput;
30}
Note: See TracBrowser for help on using the repository browser.