UNPKG

@carbon/ibm-products-web-components

Version:
33 lines (32 loc) 831 B
/** * @license * * Copyright IBM Corp. 2025, 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. */ /** * ---------- * Utilities * ---------- */ export declare const getHeaderOffset: (el: HTMLElement) => number; /** * Determines if the given target is scrollable * * @param {HTMLElement} target * @returns {boolean} */ export declare const scrollable: (target: HTMLElement) => boolean; /** * Recursively looks for the scrollable ancestor */ export declare const scrollableAncestorInner: (target: HTMLElement) => any; /** * Walks up the parent nodes to identify the first scrollable ancestor * * @param {HTMLElement} target * @returns {HTMLElement} */ export declare const scrollableAncestor: (target: HTMLElement) => any;