Giter VIP home page Giter VIP logo

Comments (4)

b4rtaz avatar b4rtaz commented on May 22, 2024 1

@gpetrov I think you didn't understand me. I mean you can control how many branches the switch step has from the step editor. I've prepared a dedicated example here. So by using this approach you can add dynamically branches as you want.

if (checked) {
   step.branches['catch'] = [];
} else {
   delete step.branches['catch'];
}
editorContext.notifyChildrenChanged();

catch-branch-designer

from sequential-workflow-designer.

gpetrov avatar gpetrov commented on May 22, 2024 1

Oh I see now. Yes that is a good way indeed. I as looking for inline icon action to do this but this way is fine indeed.

Thank you great work!

from sequential-workflow-designer.

b4rtaz avatar b4rtaz commented on May 22, 2024

I think this is a responsibility of your custom step editor. I've added a demo to this example (check the if step).

from sequential-workflow-designer.

gpetrov avatar gpetrov commented on May 22, 2024

Well in the 'if' step you have only predefined values like true and false.

If a real switch is to be implemented the user should have a way to add multiple case values inline.

So initially it might start with a single value and default but there should be a + sign somewhere for example to add extra case value.

from sequential-workflow-designer.

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.