UNPKG

1.45 kBTypeScriptView Raw
1import * as React from 'react';
2import { RefObject } from 'react';
3import { ToolbarContext } from './ToolbarUtils';
4import { PickOptional } from '../../helpers/typeUtils';
5export interface ToolbarExpandableContentProps extends React.HTMLProps<HTMLDivElement> {
6 /** Classes added to the root element of the data toolbar expandable content */
7 className?: string;
8 /** Flag indicating the expandable content is expanded */
9 isExpanded?: boolean;
10 /** Expandable content reference for passing to data toolbar children */
11 expandableContentRef?: RefObject<HTMLDivElement>;
12 /** Chip container reference for passing to data toolbar children */
13 chipContainerRef?: RefObject<any>;
14 /** optional callback for clearing all filters in the toolbar */
15 clearAllFilters?: () => void;
16 /** Text to display in the clear all filters button */
17 clearFiltersButtonText?: string;
18 /** Flag indicating that the clear all filters button should be visible */
19 showClearFiltersButton: boolean;
20}
21export declare class ToolbarExpandableContent extends React.Component<ToolbarExpandableContentProps> {
22 static displayName: string;
23 static contextType: React.Context<import("./ToolbarUtils").ToolbarContextProps>;
24 context: React.ContextType<typeof ToolbarContext>;
25 static defaultProps: PickOptional<ToolbarExpandableContentProps>;
26 render(): JSX.Element;
27}
28//# sourceMappingURL=ToolbarExpandableContent.d.ts.map
\No newline at end of file