UNPKG

@rxap/directives

Version:

This package provides a set of Angular directives to simplify common tasks such as setting background images, confirming clicks, making elements contenteditable, and more. It includes directives for handling UI interactions, applying styles, and managing

29 lines (28 loc) 1.22 kB
import { OnDestroy, OnInit, Renderer2 } from '@angular/core'; import * as i0 from "@angular/core"; export declare class MovableDividerDirective implements OnDestroy, OnInit { private readonly renderer; containerElement: HTMLDivElement; fixedElement: HTMLDivElement; origin: 'right' | 'left'; cursor: string; private _subscription; /** * Indicates that the divider is moved with mouse down * @private */ private _moveDivider; /** * Holds the current fixed element width. * If null the move divider feature was not yet used and the initial * fixed element width is not calculated * @private */ private _fixedElementWidth; constructor(renderer: Renderer2); ngOnDestroy(): void; ngOnInit(): void; onMousedown(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MovableDividerDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MovableDividerDirective, "[rxapMovableDivider]", never, { "containerElement": { "alias": "containerElement"; "required": true; }; "fixedElement": { "alias": "fixedElement"; "required": true; }; "origin": { "alias": "origin"; "required": false; }; }, {}, never, never, true, never>; }