How to reset properties using names, not indexes? #1779
-
H2O wave noob here (only 5 hours in so far, but loving it!) Per https://wave.h2o.ai/docs/examples/form-visibility, the code to set the visibility status is complicated, requiring you to know the index location of the element:
for example, if I set the "name" property from
to
I'd love to be able to just do:
I know items is a list. but why isn't it designed as a dictionary? I feel like this would make the names much more useful and the code much more readable. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Something like this would be great:
but admittedly this might reflect my deep lack of understanding of how wave stores metadata. would love to better understand! |
Beta Was this translation helpful? Give feedback.
-
Hello @bryanwhiting, you are right, the current API is cumbersome. Will be resolved by #148 hopefully in the near future :) Thanks for the feedback, much appreciated! |
Beta Was this translation helpful? Give feedback.
Hello @bryanwhiting, you are right, the current API is cumbersome. Will be resolved by #148 hopefully in the near future :) Thanks for the feedback, much appreciated!