-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Event on RangeSelector.Button is not working #79
Comments
I am not sure but does it has something to do with events in adding events in RangeSelectorButton.jscomponentDidMount () {
} |
@whawker can you please help me on this? |
Hi sorry, was not aware RangeSelector buttons supported click events. I've just published <RangeSelector selected={1}>
<RangeSelector.Button count={24} type="hour" onClick={this.handleClick}>P</RangeSelector.Button>
<RangeSelector.Button count={1} type="day">1d</RangeSelector.Button>
<RangeSelector.Button count={2} type="day">2d</RangeSelector.Button>
<RangeSelector.Button count={1} type="week">1w</RangeSelector.Button>
<RangeSelector.Button count={1} type="month">1m</RangeSelector.Button>
<RangeSelector.Button type="all">all</RangeSelector.Button>
</RangeSelector> |
@whawker I have update react-jsx-highstock@2.2.1 and i can see the changes but unfortunately I can not see the event has been called. On my side i have not done any changes in my code. Thanks, |
Hi @mwubgadeashish here is an example of Range Selector buttons with |
@whawker this is really helpful and i have a last question, how does other properties works with range selector ex: verticalAlign (bottom), size of button and etc. https://www.highcharts.com/docs/chart-concepts/range-selector |
I am not sure what can be the issue but things works well with your example (above) and does not work with my code: Ex: range selector shows at bottom of chart. |
I am trying to add a click event on button and seems its not working. I have also added following line:
The text was updated successfully, but these errors were encountered: