a-p-z / datetime-card

A minimalistic card for Home Assistant Lovelace UI which shows how many days it has been between any input_datetime and today.
21 stars 1 forks source link

no click-on set date #3

Closed Protoncek closed 2 years ago

Protoncek commented 2 years ago

Hello! I love your card, great work. It's just one thing more it would ne nice to have: the possibility to click on entity and set/change date. Is that possible to add? I'll use it as a note for dog water fountain filter replacement (to set date when it was replaced) Thanks!

a-p-z commented 2 years ago

thanks for the message. you cannot set the date but you can reset it. if you click/touch on the bar or on the days text for few seconds the date is set to the current day https://github.com/a-p-z/datetime-card/blob/5805f51315145e65579b640b640f1c931f65612f/src/DatetimeBar.svelte#L47

Protoncek commented 2 years ago

AHA! Great, that's all i need - to set date to "today". Many thanks!