Skip to content

Commit 32355d3

Browse files
committed
docs(Readme): Support for props to widgets
Allowing to provide props to the widgets
1 parent cd9dcf8 commit 32355d3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ class App extends Component {
107107
{
108108
HelloWorldWidget: {
109109
type: HelloWorld,
110-
title: 'Hello World Title'
110+
title: 'Hello World Title',
111+
props: {
112+
text: 'Hello Humans!'
113+
}
111114
},
112115
AnotherWidget: {
113116
type: AnotherWidget,
@@ -117,6 +120,7 @@ class App extends Component {
117120
```
118121
- `type` property - Should be a React component function or class.
119122
- `title` property - Title of the widget that should be displayed on top of the widget.
123+
- `props` property - Props that should be provided to the widget.
120124

121125

122126
#### Dashboard `layout`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dazzle",
3-
"version": "1.0.2",
3+
"version": "1.1.2",
44
"description": "The simple yet flexible dashbording solution for React",
55
"license": "MIT",
66
"main": "dist/lib.js",

0 commit comments

Comments
 (0)