UNPKG

custom-card-helpers

Version:

Set of helpful functions and types for Custom Card creators

11 lines (10 loc) 349 B
/** * Scroll to a specific y coordinate. * * Copied from paper-scroll-header-panel. * * @method scroll * @param {number} top The coordinate to scroll to, along the y-axis. * @param {boolean} smooth true if the scroll position should be smoothly adjusted. */ export default function scrollToTarget(element: any, target: any): void;