question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable input widget or mark it as unused?

See original GitHub issue

I have a node, which implements the relationship

    a = b * c * d

Then I can write 3 additional nodes, which calculate

    b = a / (c * d)
    c = a / (b * d)
    d = a / (b * c)

So far so good. But it’s also very unwieldy.

Another approach is to have just one node, where the first input is of dtypes.Choice(items=['a', 'b', 'c', 'd']), which selects which variable will be calculated.

Now there are two routes concerning the input:

  1. Have three inputs and change the label_str accordingly. This works perfectly.
  2. Have four inputs and use only those, which are needed. This also works fine, but it would be nice to have a visual indicator to mark the unused input.

How would I disable an input widget or mark it as unused?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sphhcommented, Apr 3, 2022

The workaround works perfectly, but I leave this issue open, because it refers to the feature request of disabling the whole input. I hope, this is ok.

0reactions
sphhcommented, Apr 5, 2022

Excellent! That’s that one I was looking for. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - How to disable input on unused Text Boxes once a ...
I want the user to only be allowed to answer 3 questions from the form and as he answers the 3 questions of...
Read more >
How To Disable & Hide Unused Elementor Widgets
The better way to remove the widget itself is to use a plugin, such as The Plus Addons for Elementor. You can just...
Read more >
Read-only / Disabled widgets · Issue #211 · ocornut/imgui
I was just running into this myself needing both read-only content and separately fully-disabled UI (no input/greyed out/etc). My hacky solution ...
Read more >
How to Disable Unused PowerPack Widgets
Open the drop-down menu, and click on the Filter: Not Used Widgets option. disable powerpack unused widgets. When you select the option, your ......
Read more >
How To Disable Many Input Widget In a Screen at Once?
You can put the input fields in a field set. Disabling the field set will also disable the elements in it. Another way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found