Navigation: Expose new props to extend Page/PluginPage (#58465)
* add extensions and customisation to `Page` * adjust alignment
This commit is contained in:
@@ -2,7 +2,18 @@ import React from 'react';
|
||||
|
||||
import { NavModelItem, PageLayoutType } from '@grafana/data';
|
||||
|
||||
export interface PageInfoItem {
|
||||
label: string;
|
||||
value: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface PluginPageProps {
|
||||
/** Can be used to place actions inline with the heading */
|
||||
info?: PageInfoItem[];
|
||||
/** Can be used to place actions inline with the heading */
|
||||
actions?: React.ReactNode;
|
||||
/** Can be used to customize rendering of title */
|
||||
renderTitle?: (title: string) => React.ReactNode;
|
||||
/** Shown under main heading */
|
||||
subTitle?: React.ReactNode;
|
||||
pageNav?: NavModelItem;
|
||||
|
||||
Reference in New Issue
Block a user