Skip to content

Commit

Permalink
docs(Readme): Support for props to widgets
Browse files Browse the repository at this point in the history
Allowing to provide props to the widgets
  • Loading branch information
Raathigesh committed Apr 26, 2016
1 parent cd9dcf8 commit 32355d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class App extends Component {
{
HelloWorldWidget: {
type: HelloWorld,
title: 'Hello World Title'
title: 'Hello World Title',
props: {
text: 'Hello Humans!'
}
},
AnotherWidget: {
type: AnotherWidget,
Expand All @@ -117,6 +120,7 @@ class App extends Component {
```
- `type` property - Should be a React component function or class.
- `title` property - Title of the widget that should be displayed on top of the widget.
- `props` property - Props that should be provided to the widget.


#### Dashboard `layout`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dazzle",
"version": "1.0.2",
"version": "1.1.2",
"description": "The simple yet flexible dashbording solution for React",
"license": "MIT",
"main": "dist/lib.js",
Expand Down

0 comments on commit 32355d3

Please sign in to comment.