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 { 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 | export 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 | */
|
---|
| 20 | export 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.