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 have created new example block with args: [{key:"test"}] like:
public customBlocks: CustomBlock[] = [new ExampleBlock([{key: "test"}])];
I want to get this args in example.block.ts so that I can use for appendField like.
public defineBlock() { this.block.appendDummyInput().appendField(this.args[0].key); }
Can you help?
The text was updated successfully, but these errors were encountered:
orlenkoo
changed the title
Custom block: how to get data from parent component
Custom block: how to get data from parent component with Constructor
Oct 26, 2022
orlenkoo
changed the title
Custom block: how to get data from parent component with Constructor
#Custom block: how to get data from parent component with Constructor
Oct 26, 2022
Hello,
Hope you are doing well..
I want to get data when create new custom block in app.component.ts in example.block.ts.
Here is the code:
I have created new example block with args: [{key:"test"}] like:
public customBlocks: CustomBlock[] = [new ExampleBlock([{key: "test"}])];
I want to get this args in example.block.ts so that I can use for appendField like.
public defineBlock() { this.block.appendDummyInput().appendField(this.args[0].key); }
Can you help?
The text was updated successfully, but these errors were encountered: