bring example up to date

This commit is contained in:
Loren Norman 2024-01-03 16:46:30 -05:00
parent 101babfc1a
commit 407a9bb152
2 changed files with 28 additions and 3 deletions

View file

@ -64,7 +64,34 @@ export default {
// describes each line of the block, from top to bottom
lines: [
"line contents", // bare string: simple line text
"line contents", // bare string: simple text line,
// ARRAY LINES
// 2 strings: text with alignment
[ "line contents", "alignment" ],
// string and object: text with inputValue or fields
[ "line contents", {
// if it's a single block input
inputValue: 'INPUT_NAME',
check: 'input_block_output',
shadow: 'block_type_to_shadow', //
shadow: {
type: 'block_type_to_shadow',
inputs: "set shadow inputs",
fields: "set shadow fields"
},
// TODO: inputStatement
// if it's a single field input
field: 'FIELD_NAME',
checked: true, // makes a checkbox field
options: [ // makes a dropdown field
['user text', 'computer id'],
// ...
]
// TODO: multiple fields: {}
}],
// OBJECT LINES (moving away from this)
{ // bare object:
// - text is line text
// - input refers to any input collection key

View file

@ -55,8 +55,6 @@ export default {
field: "EXTEND_TIMER",
checked: true
}]
// could also do multiple fields: {} and use the template string
],
generators: {