Skip to content
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

Allow observables in more places #48

Open
piever opened this issue Jun 29, 2018 · 3 comments
Open

Allow observables in more places #48

piever opened this issue Jun 29, 2018 · 3 comments

Comments

@piever
Copy link
Collaborator

piever commented Jun 29, 2018

All widget arguments that are passed to Knockout (e.g. the list of options) should also accept Observables and when upgraded Knockout would automatically update only that part of the widget.

@piever
Copy link
Collaborator Author

piever commented Jun 30, 2018

Related concern, if the user uses an observable of widgets, i.e.

options = Observable(["a", "b", "c"])
wdg = map(dropdown, options)

then observe(wdg) should probably be made to work somehow.

There is a bit of a choice whether to have upgradable widgets (meaning where one can change list of options, style or other attributes) one should simply pass observables to knockout and have it take care of it or use the Observable{Widget} approach.

@piever
Copy link
Collaborator Author

piever commented Jul 3, 2018

Fixed in the case of options by #49

@piever
Copy link
Collaborator Author

piever commented Aug 30, 2018

Range of a slider is probably another good case where this would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant