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 { ElementRef, InjectionToken, OnDestroy } from '@angular/core';
|
---|
10 | import { Subject } from 'rxjs';
|
---|
11 | /**
|
---|
12 | * Injection token that can be used to reference instances of `CdkDragHandle`. It serves as
|
---|
13 | * alternative token to the actual `CdkDragHandle` class which could cause unnecessary
|
---|
14 | * retention of the class and its directive metadata.
|
---|
15 | */
|
---|
16 | import * as ɵngcc0 from '@angular/core';
|
---|
17 | export declare const CDK_DRAG_HANDLE: InjectionToken<CdkDragHandle>;
|
---|
18 | /** Handle that can be used to drag a CdkDrag instance. */
|
---|
19 | export declare class CdkDragHandle implements OnDestroy {
|
---|
20 | element: ElementRef<HTMLElement>;
|
---|
21 | /** Closest parent draggable instance. */
|
---|
22 | _parentDrag: {} | undefined;
|
---|
23 | /** Emits when the state of the handle has changed. */
|
---|
24 | readonly _stateChanges: Subject<CdkDragHandle>;
|
---|
25 | /** Whether starting to drag through this handle is disabled. */
|
---|
26 | get disabled(): boolean;
|
---|
27 | set disabled(value: boolean);
|
---|
28 | private _disabled;
|
---|
29 | constructor(element: ElementRef<HTMLElement>, parentDrag?: any);
|
---|
30 | ngOnDestroy(): void;
|
---|
31 | static ngAcceptInputType_disabled: BooleanInput;
|
---|
32 | static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<CdkDragHandle, [null, { optional: true; skipSelf: true; }]>;
|
---|
33 | static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never>;
|
---|
34 | }
|
---|
35 |
|
---|
36 | //# sourceMappingURL=drag-handle.d.ts.map |
---|