material-remixer-js icon indicating copy to clipboard operation
material-remixer-js copied to clipboard

Consider using named args in API when adding variables.

Open chriscox opened this issue 9 years ago • 0 comments

e.g.

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

from https://github.com/material-foundation/material-remixer-web/pull/25#discussion_r89908054

chriscox avatar Nov 28 '16 23:11 chriscox