jQuery UI Widgets Forums Gauges and Maps Gauges Re-enabling a knob

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 8 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Re-enabling a knob #83437

    Joe Weinpert
    Participant

    When a knob is disabled programmatically, it does what it should: disables it and down-shades it colors. When it is re-enabled programmatically, it does enable it as it should but the colors remain down-shaded, which makes it look like it is still disabled even though it is not.

    Re-enabling a knob #83438

    Peter Stoev
    Keymaster

    You can call: $(‘#knob’).removeClass(‘jqx-fill-state-disabled’);

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Re-enabling a knob #83440

    Joe Weinpert
    Participant

    Thank you Peter!

    Your fix does indeed work. There is, however, a mistake in my post.

    At first I thought that programmatically disabling and then re-enabling a knob was working, even though the re-colorization was not. I was wrong. Once it is re-enabled, certain features stop working correctly. Things like dragging the pointer around, or clicking on a label and expecting the progress bar to correctly change. The knob, and all of its attributes, acts really discombobulated.

    Re-enabling a knob #83455

    Peter Stoev
    Keymaster

    Hi Joe Weinpert,

    We will test this case, but at present I was not able to reproduce it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.