Skip to content

Commit 261f27e

Browse files
author
Konrad
committed
Dashboard widget wrapper doc updated
1 parent b8ff487 commit 261f27e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/documentation/docs/controls/Dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The Dashboard component can be configured with the following properties:
9090
| allowHidingWidget | boolean | no | Specifies if widgets can be hidden from the dashboard. |
9191
| onWidgetHiding | (widget: IWidget) => void | no | Handler of widget hiding event. |
9292
| toolbarProps | IToolbarProps | no | Dashboard toolbar props. See [Toolbar](./Toolbar). |
93-
| WidgetContentWrapper | React.ComponentType\<React.PropsWithChildren\<any>> | no | Optional component which wraps every Widget component. Useful for a custom error handling. |
93+
| WidgetContentWrapper | React.ComponentType\<React.PropsWithChildren\<any>> | no | Optional component which wraps every Widget component. Useful for a custom error handling or styling. |
9494

9595
Interface `IWidget`
9696

src/controls/dashboard/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface IDashboardProps {
3939
*/
4040
toolbarProps?: IToolbarProps;
4141
/**
42-
* Optional component which wraps every Widget component. Useful for a custom error handling.
42+
* Optional component which wraps every Widget component. Useful for a custom error handling or styling.
4343
*/
4444
WidgetContentWrapper?: React.ComponentType<React.PropsWithChildren<any>>;
4545
}

src/webparts/controlsTest/components/ControlsTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ export default class ControlsTest extends React.Component<IControlsTestProps, IC
16951695
title: "Card 6",
16961696
size: WidgetSize.Single,
16971697
link: linkExample,
1698-
}]} WidgetContentWrapper={(props) => { return <div style={{backgroundColor: 'red'}}>{props.children}</div>;}} />
1698+
}]} />
16991699
<Toolbar actionGroups={{
17001700
'group1': {
17011701
'action1': {

0 commit comments

Comments
 (0)