Debian Codegraph @

node/@patternfly/react-table/dist/js/demos/DashboardWrapper.d.ts

raw
1 /// <reference types="react" />
2 interface DashboardWrapperProps {
3 /** Programmatically manage if the sidebar nav is shown */
4 sidebarNavOpen?: boolean;
5 /** Flag to render sample breadcrumb if custom breadcrumb not passed */
6 hasDefaultBreadcrumb?: boolean;
7 /** Flag to render sample page title if custom title not passed */
8 hasPageTemplateTitle?: boolean;
9 /** Content rendered inside the main section of the page layout (e.g. <PageSection />) */
10 children?: React.ReactNode;
11 /** Additional classes added to the page layout */
12 className?: string;
13 /** Masthead component (e.g. <Masthead />) */
14 masthead?: React.ReactNode;
15 /** Sidebar component for a side nav (e.g. <PageSidebar />) */
16 sidebar?: React.ReactNode;
17 /** Notification drawer component for an optional notification drawer (e.g. <NotificationDrawer />) */
18 notificationDrawer?: React.ReactNode;
19 /** Flag indicating Notification drawer in expanded */
20 isNotificationDrawerExpanded?: boolean;
21 /** Flag indicating if breadcrumb width should be limited */
22 isBreadcrumbWidthLimited?: boolean;
23 /** Callback when notification drawer panel is finished expanding. */
24 onNotificationDrawerExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
25 /** Skip to content component for the page */
26 skipToContent?: React.ReactElement<any>;
27 /** Sets the value for role on the <main> element */
28 role?: string;
29 /** an id to use for the [role="main"] element */
30 mainContainerId?: string;
31 /** tabIndex to use for the [role="main"] element, null to unset it */
32 mainTabIndex?: number | null;
33 /**
34 * If true, manages the sidebar open/close state and there is no need to pass the isSidebarOpen boolean into
35 * the sidebar component or add a callback onSidebarToggle function into the Masthead component
36 */
37 isManagedSidebar?: boolean;
38 /** Flag indicating if tertiary nav width should be limited */
39 isTertiaryNavWidthLimited?: boolean;
40 /**
41 * If true, the managed sidebar is initially open for desktop view
42 */
43 defaultManagedSidebarIsOpen?: boolean;
44 /**
45 * Can add callback to be notified when resize occurs, for example to set the sidebar isSidebarOpen prop to false for a width < 768px
46 * Returns object { mobileView: boolean, windowSize: number }
47 */
48 onPageResize?: ((event: MouseEvent | TouchEvent | React.KeyboardEvent, object: any) => void) | null;
49 /**
50 * The page resize observer uses the breakpoints returned from this function when adding the pf-m-breakpoint-[default|sm|md|lg|xl|2xl] class
51 * You can override the default getBreakpoint function to return breakpoints at different sizes than the default
52 * You can view the default getBreakpoint function here:
53 * https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/helpers/util.ts
54 */
55 getBreakpoint?: (width: number | null) => 'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
56 /**
57 * The page resize observer uses the breakpoints returned from this function when adding the pf-m-breakpoint-[default|sm|md|lg|xl|2xl] class
58 * You can override the default getVerticalBreakpoint function to return breakpoints at different sizes than the default
59 * You can view the default getVerticalBreakpoint function here:
60 * https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/helpers/util.ts
61 */
62 getVerticalBreakpoint?: (height: number | null) => 'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
63 /** Breadcrumb component for the page */
64 breadcrumb?: React.ReactNode;
65 /** Tertiary nav component for the page */
66 tertiaryNav?: React.ReactNode;
67 /** Accessible label, can be used to name main section */
68 mainAriaLabel?: string;
69 /** Flag indicating if the tertiaryNav should be in a group */
70 isTertiaryNavGrouped?: boolean;
71 /** Flag indicating if the breadcrumb should be in a group */
72 isBreadcrumbGrouped?: boolean;
73 /** Additional content of the group */
74 additionalGroupedContent?: React.ReactNode;
75 /** HTML component used as main component of the page. Defaults to 'main', only pass in 'div' if another 'main' element already exists. */
76 mainComponent?: 'main' | 'div';
77 /** Additional props of the group */
78 groupProps?: any;
79 /** Additional props of the breadcrumb */
80 breadcrumbProps?: any;
81 }
82 export declare const DashboardBreadcrumb: import("react/jsx-runtime").JSX.Element;
83 export declare const DashboardWrapper: React.FC<DashboardWrapperProps>;
84 export {};
85 //# sourceMappingURL=DashboardWrapper.d.ts.map