erwanito12

Results 5 comments of erwanito12

I want to reproduce this example: export const DisplayNode = new NodeBuilder("DisplayNode") .setName("Display") .addInputInterface("Value") .addOption("ValueText", "TextOption") .onCalculate(n => { let value = n.getInterface("Value").value; n.setOptionValue("ValueText", value); }) .build(); import { Node...

Thank you @krish-adi for your detailed answer, you understood my request very well. my more general idea is to be able to add options to your library. I achieved this...

which gives as result: ![image](https://user-images.githubusercontent.com/48127155/187563543-07a11512-5c10-4229-84af-6844dcec5ab4.png)

with this script: from barfi import st_barfi, barfi_schemas, Block import streamlit as st feed = Block(name='Feed') feed.add_input() feed.add_option(name = 'Peak', type = 'PeakOption', value=0.4) def feed_func(self): input_1_value = self.get_interface(name='Input 1')...

In your case, the component is responsive, but I get this error if I connect an OutputNode : ![image](https://github.com/newcat/baklavajs/assets/48127155/d48995d9-c466-4a6e-91a0-456706ad3aca) ![image](https://github.com/newcat/baklavajs/assets/48127155/0c625279-68e6-410b-849a-cf606c7ce04f) Here's a simplified example of what I'd like to do:...