Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tri-State Check Box feature #3217

Closed
jcailan opened this issue May 11, 2021 · 4 comments · Fixed by #3309
Closed

Tri-State Check Box feature #3217

jcailan opened this issue May 11, 2021 · 4 comments · Fixed by #3309

Comments

@jcailan
Copy link

jcailan commented May 11, 2021

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
In relation to my earlier feature request for select all / deselect all, I would like to request for a Tri-State Check Box feature similar to SAP UI5 Tri-State Check Box

Describe alternatives you've considered
Just use the 2-state check box in the meantime.

Additional context
See SAPUI5 Tri-State Check Box

Thanks and regards,
Jhodel

@jcailan jcailan changed the title Request for a Tri-State Check Box feature Tri-State Check Box feature May 11, 2021
@ilhan007
Copy link
Member

ilhan007 commented May 19, 2021

Hello team @SAP/ui5-webcomponents-topic-p
we would like to provide support for а third state of the checkbox. There is existing Fiori 3 spec for that and it already exists in the native html checkbox.

API
New property. indeterminate.
In the native checkbox the third state is called "indeterminate" mdn and we would like to use it as well.

How it works

This property leads only to visual change of the checkbox and the state cannot be achieved by user interaction. The visual state depends on the value of the checked and indeterminate properties:

If checked = true and indeterminate = true, the component is displayed in indeterminate state
If checked = true and indeterminate = false, the component is displayed as checked
If checked = false, the component is displayed as not checked regardless of what is set for indeterminate

Reference implementation
https://sapui5.hana.ondemand.com/#/entity/sap.m.CheckBox/sample/sap.m.sample.CheckBoxTriState

@nnaydenow
Copy link
Contributor

Internal reference: 5259

@nnaydenow nnaydenow self-assigned this May 25, 2021
ilhan007 pushed a commit that referenced this issue May 28, 2021
Added new property attribute which determines whether the component is displayed as partially checked.

Fixes: #3217
@ilhan007
Copy link
Member

Hello @jcailan the feature will be available with 1.0.0-rc.15

@ilhan007 ilhan007 modified the milestones: 1.0.0-rc.17, 1.0.0-rc.15 May 28, 2021
@jcailan
Copy link
Author

jcailan commented May 28, 2021

Thanks a lot @ilhan007 !

Looking forward to start using it.

Cheers,
Jhodel

kskondov pushed a commit that referenced this issue May 31, 2021
Added new property attribute which determines whether the component is displayed as partially checked.

Fixes: #3217
kskondov pushed a commit that referenced this issue May 31, 2021
Added new property attribute which determines whether the component is displayed as partially checked.

Fixes: #3217
@petyabegovska petyabegovska moved this to 1.0.0-rc.15 (released Aug) in UI5 Web Components - Roadmap Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 1.0.0-rc.15 (released Aug)
Development

Successfully merging a pull request may close this issue.

4 participants