Skip to content

Commit

Permalink
updated the documentation for sequencer
Browse files Browse the repository at this point in the history
  • Loading branch information
tatecarson committed Sep 7, 2020
1 parent b98f1fc commit 521e732
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion api/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -12917,7 +12917,7 @@
},
{
"title": "output",
"description": "change\nFires any time the interface's matrix changes. <br>\nThe event data is an object containing <i>row</i> (number), <i>column</i> (number), and <i>state</i> (boolean) properties.",
"description": "change\nFires whenever a value is received. For example, when clicking a cell from off to on. <br>\nThe event data is an object containing <i>row</i> (number), <i>column</i> (number), and <i>state</i> (boolean) properties.",
"lineNumber": 20
},
{
Expand Down
4 changes: 2 additions & 2 deletions dist/NexusUI.js

Large diffs are not rendered by default.

19 changes: 8 additions & 11 deletions example/misc-testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,16 @@
}
</style>
<script>
var thing = new Nexus.Multislider("#target", {
'size': [200, 100],
'numberOfSliders': 9,
'min': 0,
'max': 1,
'step': 0,
'candycane': 3,
'values': [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1],
'smoothing': 0,
'mode': 'bar' // 'bar' or 'line'
});
var thing = new Nexus.Sequencer('#target',{
'size': [400,200],
'mode': 'toggle',
'rows': 5,
'columns': 10,
})

thing.on('change', x => console.log(x))


</script>

</html>
2 changes: 1 addition & 1 deletion lib/interfaces/sequencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class MatrixCell extends ButtonTemplate {
*
* @output
* change
* Fires any time the interface's matrix changes. <br>
* Fires whenever a value is received. For example, when clicking a cell from off to on. <br>
* The event data is an object containing <i>row</i> (number), <i>column</i> (number), and <i>state</i> (boolean) properties.
*
* @outputexample
Expand Down

0 comments on commit 521e732

Please sign in to comment.