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 { BooleanInput } from '@angular/cdk/coercion';
|
---|
9 | import { 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 | */
|
---|
15 | import * as ɵngcc0 from '@angular/core';
|
---|
16 | export 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 | */
|
---|
21 | export 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 |
---|