Open mturoci opened 1 year ago
a method to generate form card based on function parameters definition:
e.g. use the below submit function
def submit(fileno, param1, param2): ... ...
a util function like as: page['hello'] = ui.util.func_form_card(box='...', function=submit)
which generated the form_card with two textbox fields (param1 and param2), and OK+Cancel button.
is it possible?
Thanks for the suggestion @italanchan!
So you want something like a "callback" function for getting data, right? This might be a stretch for the utils package, which aims to be a simple input => output functions. Your proposal would require core changes to the Wave itself.
Make a separate package of utility functions that help with easier integration between Wave and common AI tooling. One such example would be converting a dataframe into a Wave table.
Use https://github.com/h2oai/wave-utils as a starter.
Community proposals
If you have an idea for a particular util function that could be useful to others, please comment on this issue. If you can also provide an implementation, that would be even better.