Skip to content

Is this possible? #4150

Answered by kasperbolarsen
McCugor asked this question in Q&A
Dec 11, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Absolutely
based on #3697

I got this to work by setting the handlebar of the date field to (the css needs to be updated and the colors should be as per the Theme):

{{#if (moment (slot item @root.slots.TheDate) isBefore=(moment))}} <div class="datesample" style="background-color:red"> {{else}} <div class="datesample" style="background-color:green"> {{/if}} {{getDate (slot item @root.slots.TheDate) 'LL'}} </span>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@McCugor
Comment options

Answer selected by McCugor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants