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

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

adding new components

  • Property mode set to 100644
File size: 1.5 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 */
15import * as ɵngcc0 from '@angular/core';
16export declare const CDK_DRAG_PREVIEW: InjectionToken<CdkDragPreview<any>>;
17/**
18 * Element that will be used as a template for the preview
19 * of a CdkDrag when it is being dragged.
20 */
21export declare class CdkDragPreview<T = any> {
22 templateRef: TemplateRef<T>;
23 /** Context data to be added to the preview template instance. */
24 data: T;
25 /** Whether the preview should preserve the same size as the item that is being dragged. */
26 get matchSize(): boolean;
27 set matchSize(value: boolean);
28 private _matchSize;
29 constructor(templateRef: TemplateRef<T>);
30 static ngAcceptInputType_matchSize: BooleanInput;
31 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<CdkDragPreview<any>, never>;
32 static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "matchSize": "matchSize"; "data": "data"; }, {}, never>;
33}
34
35//# sourceMappingURL=drag-preview.d.ts.map
Note: See TracBrowser for help on using the repository browser.