Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Consider using named args in API when adding variables. #28

Open
chriscox opened this issue Nov 28, 2016 · 0 comments
Open

Consider using named args in API when adding variables. #28

chriscox opened this issue Nov 28, 2016 · 0 comments

Comments

@chriscox
Copy link
Member

chriscox commented Nov 28, 2016

e.g.

remixer.addRangeVariable({
  label: "Box opacity",
  defaultValue: 1,
  from: 0,
  to: 1,
  incrementSize: .1,
  onChange(nextValue) {
    box.style.opacity = nextValue;
  }
});

from #25 (comment)

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

No branches or pull requests

1 participant