You need to sign in to do that
Don't have an account?
kevin van Turennout
Aura iterate to list with check if greather than today?
I have a list with a date field for each record and i have a aura iterate to the list to show for each record sliders.
Now i only want to show sliders for the records with date greather than today.
What is the best way to do it? I try with aura:if to check list.date with a today attribute create in my controller with var today = new date();
but it did'nt work
Now i only want to show sliders for the records with date greather than today.
What is the best way to do it? I try with aura:if to check list.date with a today attribute create in my controller with var today = new date();
but it did'nt work
Best way I feel would be to do this in the JS controller. Somthing like below probably:
Hope this helps.
Thanks and Regards,
Neha
www.initaura.com - Everything Salesforce (https://www.initaura.com)
Thank you for your answer,
I see that I had forgotten something in my question. Everfy record has a total amount and in the and i want to sum all te total amounts to show it in my component. I need all records that are retrieved in my list
You can keep your original records in another array. And one array you can keep your filtered records. Use and assign which ever array you require in your component.
Does that make sense ?
Thanks,
Neha