@wordpress/dom
Version:
DOM utilities module for WordPress.
10 lines • 432 B
TypeScript
/**
* Check whether the selection is horizontally at the edge of the container.
*
* @param {HTMLElement} container Focusable element.
* @param {boolean} isReverse Set to true to check left, false for right.
*
* @return {boolean} True if at the horizontal edge, false if not.
*/
export default function isHorizontalEdge(container: HTMLElement, isReverse: boolean): boolean;
//# sourceMappingURL=is-horizontal-edge.d.ts.map