-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feature: onCreateRow onCreateCol #122
Conversation
Created onCreateRow and onCreateCol which are called when a row is created and column created respectively.
If you want to change the arguments that get passed to the onCreateRow and onCreateCol functions please feel free to do so. In what I am using these for I am not using any arguments so I just tried to figure out what might be useful to people. |
I am not familiar with the notation to send callback object instead of a function. Is this your idea or you have experience with it from other projects? I understand the reason but I think I would prefer to remove it to keep the code simple and understandable to broad audience. |
I'm actually used to using Yui2 where you can create events which can be subscribed to. Each thing you subscribe can have its own scope. The reason I did called it like this: Is because that way this in the function it calls is the handsontable. As I mentioned I don't actually need it to do this. I'm not using any of the data I'm passing to it. I'm just using the function to know that the size of the handsontable has changed so I can switch it into a scrolling handsontable if it gets past a certain point. |
I see. I will think about it... Another question - would you mind if I merge those callbacks into one
|
Go ahead. This change is easy for me to do in my code. Feel free to make any changes you'd like to my code. |
I am looking for this feature to limit the max rows that can be created. Is there any other way to accomplish this with the current release? |
Thanks for your patience guys! We could not merge the pull request because we were working on a more complex solution for the events and callbacks. Now it is ready. Handsontable 0.9.0-beta1 adds new callbacks More about new Events. I will close this ticket when branch 0.9 is merged with master. Thanks again! |
Handsontable 0.9.0 now features the More about new events here: https://github.com/warpech/jquery-handsontable/wiki/Events |
Created onCreateRow and onCreateCol which are called when a row is
created and column created respectively.