File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ How to use
44
44
45
45
``` js
46
46
React .createElement (AmCharts .React , {
47
+ className: " my-class" ,
47
48
style: {
48
49
width: " 100%" ,
49
50
height: " 500px"
@@ -61,6 +62,7 @@ Or alternatively if you are using JSX:
61
62
62
63
``` js
63
64
< AmCharts .React
65
+ className= " my-class"
64
66
style= {{
65
67
width: " 100%" ,
66
68
height: " 500px"
@@ -111,6 +113,14 @@ You can see an example program in the `examples/webpack-export` folder. It updat
111
113
112
114
## Changelog
113
115
116
+ ### 3.1.0
117
+
118
+ * Adding in ` className ` property for specifying the CSS class for the element.
119
+
120
+ ### 3.0.3
121
+
122
+ * Fixing version ranges for ` react ` and ` react-dom `
123
+
114
124
### 3.0.0
115
125
116
126
* Rather than passing in the configuration directly, instead you must pass in the configuration using the new ` options ` property.
Original file line number Diff line number Diff line change @@ -276,7 +276,6 @@ console.warn("Version 1.0 is outdated. Please upgrade to version 2.0:\nhttps://g
276
276
render : function ( ) {
277
277
return React . DOM . div ( {
278
278
id : this . state . id ,
279
- className : this . props . className || null ,
280
279
style : {
281
280
width : this . props . width || "100%" ,
282
281
height : this . props . height || "100%"
You can’t perform that action at this time.
0 commit comments