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.

Add `disablemethod` flag to button and slider steps

See original GitHub issue

An emerging pattern for examples of sufficient complexity is that it’s becoming necessary to hook into components via events instead of strictly the command api interface. This might be the case if you have to, say, perform a couple precisely sequenced async actions before animating.

However, a problem with sliders, for example, is that bailing on specifying method and args as you normally would breaks the coupling that puts the slider in the correct position when you change the frame via some other pathway, like a play button.

I propose two things:

  • disablemethod for updatemenus and sliders buttons/steps that leaves everything else unaffected and just skips actually executing the method so that you can hook into an event and call it yourself in a more sophisticated way. Otherwise the behavior will be unaffected.
  • allow null for a method. Currently the supplydefaults enum blocks what seems like a legitimate usage when you just want a slider with no associated api call. (i.e. why have events if you can’t use them?)

/cc @etpinard @alexcjohnson @bpostlethwaite for what might need to be expedited feedback and fixes

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
rreussercommented, May 17, 2017

Ohhhh, I see your point. Got it. Yeah, then I like skip.

1reaction
etpinardcommented, May 17, 2017

as in Plotly[null], which is just a no-op

Right. But there would be no way to restyle it to that value. In other words, there are no null values in any of our attribute declarations for a reason. Actually, that’s a lie, there are few null like in contour.start but they mean this default value is auto-computed not this default value is null.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DISABLE( ) method - Progress Documentation
Disables the radio set button. The selected radio-set button's SCREEN-VALUE is changed to the first enabled radio set button or to the Unknown...
Read more >
How to disable or enable buttons using Javascript and jQuery
Learn how to enable or disable buttons using javascript and jQuery based on whether the input field is filled or empty.
Read more >
ui.slider, API Reference Webix Docs
Horizontal or vertical slider for choosing numeric values from a range of predefined ones. The control allows changing numeric data by dragging a...
Read more >
Binding Functions and Enable/Disable State in HTML Buttons ...
One such user experience technique is telling the user that something is happening or is loading in the background when a button is...
Read more >
Enable or Disable Your Flags - Harness.io Docs
In your Harness Project, go to Feature Flags. A list of all your Flags is displayed. Toggle the button next to the Flag...
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