/** * * ScrollPanel is a cross browser, lightweight and skinnable alternative to native browser scrollbar. * * [Live Demo](https://www.primereact.org/scrollpanel/) * * @module scrollpanel * */ import * as React from 'react'; import { PassThroughType } from '../utils/utils'; export declare type ScrollPanelThroughType = PassThroughType; /** * Custom passthrough(pt) option method. */ export interface ScrollPanelThroughMethodOptions { props: ScrollPanelProps; } /** * Custom passthrough(pt) options. * @see {@link ScrollPanelProps.pt} */ export interface ScrollPanelPassThroughOptions { /** * Uses to pass attributes to the root's DOM element. */ root?: ScrollPanelThroughType>; /** * Uses to pass attributes to the wrapper's DOM element. */ wrapper?: ScrollPanelThroughType>; /** * Uses to pass attributes to the content's DOM element. */ content?: ScrollPanelThroughType>; /** * Uses to pass attributes to the horizontal panel's DOM element. */ barX?: ScrollPanelThroughType>; /** * Uses to pass attributes to the vertical panel's DOM element. */ barY?: ScrollPanelThroughType>; } /** * Defines valid properties in ScrollPanel component. In addition to these, all properties of HTMLDivElement can be used in this component. * @group Properties */ export interface ScrollPanelProps extends Omit, HTMLDivElement>, 'ref'> { /** * Used to get the child elements of the component. * @readonly */ children?: React.ReactNode | undefined; /** * Uses to pass attributes to DOM elements inside the component. * @type {ScrollPanelPassThroughOptions} */ pt?: ScrollPanelPassThroughOptions; } /** * **PrimeReact - ScrollPanel** * * _ScrollPanel is a cross browser, lightweight and skinnable alternative to native browser scrollbar._ * * [Live Demo](https://www.primereact.org/scrollpanel/) * --- --- * ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png) * * @group Component */ export declare class ScrollPanel extends React.Component { /** * Used to get container element. * @return {HTMLDivElement} Container element */ public getElement(): HTMLDivElement; /** * Used to get content of the scrollpanel. * @return {HTMLDivElement} Content element */ public getContent(): HTMLDivElement; /** * Used to get horizontal scrollbar of the panel. * @return {HTMLDivElement} Horizontal bar element */ public getXBar(): HTMLDivElement; /** * Used to get vertical scrollbar of the panel. * @return {HTMLDivElement} Vertical bar element */ public getYBar(): HTMLDivElement; }