advisorgee
(Advisorgee)
December 14, 2023, 4:38am
1
I would like to see an addition to the ToDo-List card to hide the checked items. I don’t need to see the items I’ve already bought/done, but may need to reference them or re-add them in the future.
I tried using card_mod to achieve this, but the same class is used for both new items and checked items.
JDogg016
(Justin)
December 28, 2023, 10:27pm
2
Did you ever figure out how to do this?
TomekG
(Tomasz)
January 8, 2024, 5:53pm
3
+1 from my side. It’s useful and also reduces how much place the list takes.
advisorgee
(Advisorgee)
January 30, 2024, 7:42pm
4
Someone posted a solution to this using card_mod;
I too would like a more customizable todo list card. Given how much the todo list functionality has been expanded recently though, I have no doubt this will happen soon enough!
Right now I’m trying to use a todo list to manage active alerts/alarms (like temperature issues, motion detection, trash day about to come up, etc) in my HA instance. I’m using the following card mod config to show a list of active items on the list:
type: todo-list
entity: todo.alerts
card_mod:
style:
.: |
…
1 Like
Seems this solution is not working anymore, anyone has a workaround? Thanks!
Think I figured it out for now, this worked for me, after 2024.2, added section ha-check-list-item.editRow.completed
:
My full card-mod configuration, with line spacing “corrected” to my likings :
card_mod:
style:
ha-textfield:
$: |
.mdc-text-field {
margin-top: -28px;
margin-bottom: 5px;
height: 50px !important;
}
.mdc-text-field__input {
color: white !important;
}
.: |
ha-card.type-todo-list div.header {
display: none;
}
ha-check-list-item.editRow.completed {
display: none;
}
:host {
--mdc-checkbox-ripple-size: 33px;
}
ha-check-list-item {
min-height: 28px !important;
}
ha-card {
--mdc-typography-subtitle1-font-size: 17px;
}
ha-icon-button.reorderButton,
ha-icon-button.addButton {
margin-top: -35px !important;
}
.divider {
display: none;
}
Thanks!
7 Likes
advisorgee
(Advisorgee)
February 11, 2024, 7:07pm
7
Works great, thanks for fixing it.
1 Like
I just tried this work-around and while it works, I would like to have the checked off items still available via a drop down. This should really be part of the core card options.
1 Like
wendevlin
(Wendelin)
October 11, 2024, 8:20am
9
Hi,
will be in core 2024.11
home-assistant:dev
← home-assistant:todo-list-card-hide-completed
opened 06:30PM - 10 Oct 24 UTC
<!--
You are amazing! Thanks for contributing to our project!
Please, DO N… OT DELETE ANY TEXT from this template! (unless instructed).
-->
## Proposed change
- Added option for todo-list-card to hide the completed items
![image](https://github.com/user-attachments/assets/3479dbf9-ede6-43ce-a512-f76cd6b991ed)
![image](https://github.com/user-attachments/assets/e2df9a5d-d44d-4673-9139-c22c43ab1a31)
## Type of change
<!--
What type of change does your PR introduce to the Home Assistant frontend?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (thank you!)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Example configuration
<!--
Supplying a configuration snippet, makes it easier for a maintainer to test
your PR.
-->
```yaml
type: todo-list
entity: todo.shopping_list
hide_completed: true
```
## Additional information
- This PR is related to issue or discussion:
- https://community.home-assistant.io/t/have-an-option-to-hide-checked-items-on-the-todo-list-card/655424/8
- https://community.home-assistant.io/t/shopping-list-how-to-disable-hide-the-clear-completed-button-icon/617372
- Link to documentation pull request: https://github.com/home-assistant/home-assistant.io/pull/35170
## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->
- [x] The code change is tested and works locally.
- [x] There is no commented out code in this PR.
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
<!--
Thank you for contributing <3
-->
[docs-repository]: https://github.com/home-assistant/home-assistant.io