Opened 15 years ago
Closed 13 years ago
#2552 closed bug (invalid)
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: | |
Blocked by: | Blocking: |
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 (8)
comment:1 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This also needs to be done for:
resizable selectable slider tabs
comment:3 Changed 15 years ago by
Owner: | changed from paul to braeker |
---|---|
Status: | reopened → new |
Eduardo, could you do this for the other modules?
comment:4 Changed 15 years ago by
Using the widget factory will automatically add the enable/disable methods.
comment:5 Changed 15 years ago by
Owner: | changed from braeker to paul |
---|---|
Status: | new → assigned |
comment:7 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Slider, selectable and resizable all use this.disabled instead of this.options.disabled.
comment:8 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Done!