word-cloud-react
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -41,3 +41,6 @@ import _classCallCheck from "/Users/sazzadsazib/Desktop/Work/Front-end/PackageBuild/word-cloud-react/node_modules/@babel/runtime/helpers/esm/classCallCheck"; | ||
}, React.createElement("div", { | ||
"data-tip": "Value: " + item.value | ||
"data-tip": "Value: " + item.value, | ||
onClick: function onClick() { | ||
return _this.props.clickEvent ? _this.props.clickEvent(item) : ''; | ||
} | ||
}, " ", item.word, " "), React.createElement(ReactTooltip, { | ||
@@ -44,0 +47,0 @@ place: "top", |
{ | ||
"name": "word-cloud-react", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"dependencies": {}, | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -23,7 +23,7 @@ # Word Cloud React · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sazzadsazib/cohort-react-graph/blob/master/LICENSE) | ||
###Props: | ||
### Props: | ||
``width: auto | number , PropType: String | Integer``<br/><br/> | ||
``data: [{"value": 100, "word": "hi},{"value": 150, "word": "hello}] , PropType: Array``<br/><br/> | ||
``color: ['#71803F', '#F8AC1D'] , PropType: Array``<br/><br/> | ||
``clickEvent={(x)=>console.log(x.word)}`` | ||
@@ -30,0 +30,0 @@ ### Color Schemes: |
6386
63