You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a custom blocks palette and have a block for an array of objects (ELIZA rules):
rules =
[
{ pattern: /(.*)you remember(.*)/, position: 2, response: 'Do you often think of #'}
]
Pedagogically I'd like to give this block as an example and then another block with a rule template:
{ pattern: /``/, position: ``, response: ``}
The problem is that although I can make this block appear in the palette, it does not have a "notch" and so will not drag/drop into the correct insertion point in the rules array. This block instead is a a "flat" block typical of parameters.
I have a work around for this which is to use an IIFE, but pedagogically that is not so nice:
do -> return { pattern: /``/, position: ``, response: ``}
This drag/drops with the desired behavior.
It seems obvious this is a UI issue, so if there is a way of forcing notches from the palette itself, I could solve the problem that way.
The text was updated successfully, but these errors were encountered:
I'm using a custom blocks palette and have a block for an array of objects (ELIZA rules):
Pedagogically I'd like to give this block as an example and then another block with a rule template:
The problem is that although I can make this block appear in the palette, it does not have a "notch" and so will not drag/drop into the correct insertion point in the
rules
array. This block instead is a a "flat" block typical of parameters.I have a work around for this which is to use an IIFE, but pedagogically that is not so nice:
This drag/drops with the desired behavior.
It seems obvious this is a UI issue, so if there is a way of forcing notches from the palette itself, I could solve the problem that way.
The text was updated successfully, but these errors were encountered: