@carbon/ibm-products-web-components
Version:
Carbon for IBM Products Web Components
26 lines • 830 B
TypeScript
/**
* Copyright IBM Corp. 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ReactiveController, ReactiveControllerHost } from 'lit';
interface CollapsibleOptions {
container: () => HTMLElement | null;
triggerCollapse: (collapsed: boolean) => void;
disable?: () => boolean;
}
export declare class CollapsibleController implements ReactiveController {
private options;
private startY;
private isDragging;
constructor(host: ReactiveControllerHost, options: CollapsibleOptions);
private onPointerDown;
private onPointerMove;
private onPointerUp;
private onWheel;
hostConnected(): void;
hostDisconnected(): void;
}
export {};
//# sourceMappingURL=collapsible-controller.d.ts.map