Skip to content

Commit e49e242

Browse files
id for div (#57)
1 parent 51e1f8b commit e49e242

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/factory.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export default function plotComponentFactory(Plotly) {
265265
render() {
266266
return (
267267
<div
268+
id={this.props.divId}
268269
style={this.props.style}
269270
ref={this.getRef}
270271
className={this.props.className}
@@ -288,6 +289,7 @@ export default function plotComponentFactory(Plotly) {
288289
style: PropTypes.object,
289290
className: PropTypes.string,
290291
useResizeHandler: PropTypes.bool,
292+
divId: PropTypes.string,
291293
};
292294

293295
for (let i = 0; i < eventNames.length; i++) {

0 commit comments

Comments
 (0)