JuliaGizmos / InteractNext.jl

28 stars 6 forks source link

menu widget #11

Closed jlgw closed 6 years ago

jlgw commented 6 years ago

I thought it would be useful to have a menu widget. Its associated observable is updated to the name (string) of the option that is chosen. Then the user can use the menu either as a choice selector (like the abstract array slider) or add listeners to the observable to perform more complex operations.

jlgw commented 6 years ago

On closer inspection "dropdown" seems to be almost identical so disregard this.

shashi commented 6 years ago

Appreciate the effort! Seems like you learned quite a bit about this project :)

jlgw commented 6 years ago

Thank you for this very fun and useful project. I'm curious about the scope of InteractNext though: Is the goal being able to create a relatively complete UI? I'm considering porting an old project of mine to Julia and it would be nice if it were possible to use InteractNext/WebIO as the frontend. In that case the distinction between a dropdown selector and a file/edit style menu may be necessary, but the distinction probably goes beyond the scope of the project if the goal is mainly plot interaction etc.

shashi commented 6 years ago

No such hard rule. We'd love to have many widgets one may want to use in a single page application. This package is as good a place as any to have these for now. Menus, Tabs, Carousels, Icon sets etc are all welcome here!