Opened 13 years ago
Closed 9 years ago
#7514 closed enhancement (fixed)
[patch][ccla]CheckBox: support intermediate state
Reported by: | David Schwartz | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | Dojox | Version: | 1.1.1 |
Keywords: | ibm check-box state | Cc: | |
Blocked By: | Blocking: |
Description
A check box should be able to reflect three different states when it represents a setting shared by more than one selected object:
The check box is marked if all of the selected objects have that setting turned on. For example, the map displays all Border and Label features (see image below).
The check box has an intermediate state if some, but not all, of the selected objects have that setting turned on. For example, the map displays only some Geographic Web features.
Display nothing in the box if none of the selected objects has that setting turned on. For example, the map displays no 3D building features.
Attachments (4)
Change History (19)
Changed 13 years ago by
Attachment: | checkbox02.jpg added |
---|
comment:1 Changed 13 years ago by
Owner: | set to Douglas Hays |
---|---|
Summary: | Check box actually has three states → CheckBox: support intermediate state |
comment:2 Changed 13 years ago by
Component: | Dijit - LnF → Dijit |
---|---|
Milestone: | tbd → 1.4 |
Type: | defect → enhancement |
comment:3 Changed 12 years ago by
Milestone: | 1.4 → 1.5 |
---|
bumping 1.4 tickets to 1.5, and most 1.3 tickets to 1.4
comment:4 Changed 11 years ago by
FWIW, depending on the nature of the form, this third state could be relevant. Consider a form in which the user sets the properties of a number of end-user objects where the value for a specific boolean property for some objects is true while it's false for others. You'd use this third state to indicate this condition for such properties and that, unless changed in the form, this condition will remain unchanged upon form submission.
comment:5 Changed 11 years ago by
Milestone: | 1.5 → future |
---|
comment:6 Changed 10 years ago by
Component: | Dijit → Dojox |
---|---|
Milestone: | future → 1.7 |
Owner: | changed from Douglas Hays to Adam Peller |
comment:7 Changed 10 years ago by
Summary: | CheckBox: support intermediate state → [patch][ccla]CheckBox: support intermediate state |
---|
Changed 10 years ago by
Attachment: | TriStateCheckBox_v0.1_dojox.patch added |
---|
implementation from Siqi Zhong (IBM, CCLA)
Changed 10 years ago by
Attachment: | TriStateCheckBox_v0.1_dijit.patch added |
---|
dijit patch from Siqi Zhong (IBM, CCLA)
Changed 10 years ago by
Attachment: | tristatecheckboxStates.png added |
---|
image to be placed at dojox/form/resources/images (IBM, CCLA)
comment:8 Changed 10 years ago by
comment:9 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [24657]) TriStateCheckbox? impl from Siqi Zhong (IBM, CCLA) Fixes #7514
comment:10 Changed 10 years ago by
Hi, there's no test file in the check in, was it left off by mistake?
comment:11 Changed 10 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Yes, and it has regressed. Reopening bug. Thanks, Bill.
comment:13 Changed 10 years ago by
comment:15 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
looks ok now. Closing.
Obviously this wouldn't work for form submission but could be used outside of forms.
Not sure what the API should be though as "checked" attribute is boolean. I.e, it's a special boolean attribute in browsers,for example: