-
Notifications
You must be signed in to change notification settings - Fork 24
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
Generated vaadin-grid can't seem to utilize getItem #61
Comments
It's not a huge issue in this particular case, since I'm keeping a copy of the item list in GWT and can just pull from there. However, it could pose issues if there's other JS functions that take callback functions with more than one argument as parameters. |
It's almost impossible to figure out the arguments of a callback. Hydrolysis does not provide that info. Also we would need to define a hight amount of functional interfaces for all possibilities. But because we are using the JsInterop
|
Ah, ok. That works! Thanks! |
Example code:
The Object arg always seems to be null, regardless of which row is selected.
The issue seems to be that getItem() should take a function with two inputs (JSFunction2 in vaadin-grid's gwt code).
function (error, item) {}
Perhaps arg is simply the "error" input? (Which would make sense, as it should be null.)
There's not currently any way to easily get a specific row's data via the generated code.
The text was updated successfully, but these errors were encountered: