Bug Tracker

Ticket #2552 (closed bug: invalid)

Opened 7 years ago

Last modified 5 years ago

UI Plugins - disabled option, with getter and setter

Reported by: rworth Owned by: paul
Priority: undecided Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: disabled Cc:
Blocking: Blocked by:

Description

For any UI plugin that can be disabled, in addition to two convenience methods (enable, disable), there should be an option: disabled, available at init, with a getter and setter. Ex:

$(el).draggable({disabled: true}); assert($(el).data("disabled.draggable") == true); $(el).data("enable"); assert($(el).data("disabled.draggable") == false); $(el).data("disable"); assert($(el).data("disabled.draggable") == true);

Change History

comment:1 Changed 7 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Done!

comment:2 Changed 7 years ago by rworth

  • Status changed from closed to reopened
  • Resolution fixed deleted

This also needs to be done for:

resizable selectable slider tabs

comment:3 Changed 7 years ago by paul

  • Owner changed from paul to braeker
  • Status changed from reopened to new

Eduardo, could you do this for the other modules?

comment:4 Changed 7 years ago by scott.gonzal

Using the widget factory will automatically add the enable/disable methods.

comment:5 Changed 7 years ago by paul

  • Owner changed from braeker to paul
  • Status changed from new to assigned

comment:6 Changed 7 years ago by paul

  • Status changed from assigned to closed
  • Resolution set to fixed

DONE!

comment:7 Changed 7 years ago by scott.gonzal

  • Status changed from closed to reopened
  • Resolution fixed deleted

Slider, selectable and resizable all use this.disabled instead of this.options.disabled.

comment:8 Changed 5 years ago by john

  • Status changed from reopened to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.