Giter Site home page Giter Site logo

Function Component about flow HOT 4 CLOSED

ColtonMcInroy avatar ColtonMcInroy commented on August 20, 2024
Function Component

from flow.

Comments (4)

petersirka avatar petersirka commented on August 20, 2024 2

@ColtonMcInroy - I do not have an email for you, but try our brand-new product UI Studio. This demo is primarily intended for the Flow as a UI Builder: DEMO (don't change the data there). Let me know your feelings.

Tomorrow I will look into this issue.

from flow.

petersirka avatar petersirka commented on August 20, 2024

Hi @ColtonMcInroy, I have fixed the Teleport component. It contained a wrong implementation of the Web Component declaration.

I found that it destroys the incoming message

This is not true. The Teleport component does not destroy messages when input/output exists, otherwise it must destroy them to prevent zombie messages.

from flow.

ColtonMcInroy avatar ColtonMcInroy commented on August 20, 2024

This is not true. The Teleport component does not destroy messages when input/output exists, otherwise it must destroy them to prevent zombie messages.

@petersirka You are correct, sorry, mixed up that with FlowStream Input/Output/Subscribe/Publish components.

The other feature this implements is very handy though.

image

The message data at the end of the Output Mode handler is returned to the Input Mode component as the payload of the message it outputs. This way the data is returned to the correct location in a flow. If you used teleport for instance to process logic in another location, you would have to use teleport to send it back. If that logic is to be applied to multiple locations, then this could become problematic. This component takes care of it.

Here is a copy of the html file version of this component
Function.html.tar.gz

from flow.

petersirka avatar petersirka commented on August 20, 2024

@ColtonMcInroy improve your code in the Function component:

<ui-component name="watcher" config="CONFIG">
    <script type="text/js">

        // IMPORTANT:
        if (!value)
            return;

        component.watcherbackup && component.unwatch(component.watcherbackup);
        var defcolor = '#888';
        var deftext = 'Not configured';

from flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.