Hi, I tried to use parentEl to render my daterangepicker within a specific div with id = 'my-div-id'
Different ways I tried
Passing a simple string 'my-div-id'
Passing a dom element using document.getElementById('my-div-id')
Passing a jquery element $('#my-div-id')
None of the above methods seem to work. Could anyone please share how do I use parentEl to render my daterangepicker as a child of a specific div.
initialSettings={{ startDate: state.startDate, endDate: state.endDate, ranges: state.ranges, opens: 'left', parentEl: parentEl }}
Hi, I tried to use parentEl to render my daterangepicker within a specific div with id = 'my-div-id'
Different ways I tried Passing a simple string 'my-div-id' Passing a dom element using document.getElementById('my-div-id') Passing a jquery element $('#my-div-id')
None of the above methods seem to work. Could anyone please share how do I use parentEl to render my daterangepicker as a child of a specific div.
initialSettings={{ startDate: state.startDate, endDate: state.endDate, ranges: state.ranges, opens: 'left', parentEl: parentEl }}
Thanks.