EN-US:
This plugin provides two ways to generate a list of dates between a given initial date and an end date: client-side and server-side. Below are the details and use cases for each method.
This plugin generates a list of dates between an initial date and an end date. It supports both client-side and server-side generation of dates, ensuring flexibility based on the use case.
"[CLIENTSIDE]-GenerateDates" element:
Use Case: Ideal for real-time interactions where immediate feedback is needed without server latency.
Behavior: When the initial date is greater than the end date, it triggers an event "[CLIENTSIDE]-GenerateDates Initial date is higher than end date". Otherwise, it publishes the list of dates as a state and triggers the event "[CLIENTSIDE]-GenerateDates Dates generated".
"[SERVER SIDE] - Generate Dates " action:
Use Case: Suitable for scenarios where the date generation needs to be handled on the server, such as when dealing with large datasets or requiring server-side validation.
Behavior: It generates the list of dates and returns them along with an error flag if the initial date is greater than the end date.
If you want to talk to me, send me an email:
[email protected]PT-BR:
Este plugin gera uma lista de datas entre uma data inicial e uma data final. Ele suporta a geração de datas tanto no lado do cliente quanto no lado do servidor, garantindo flexibilidade com base no caso de uso.
Elemento "[CLIENTSIDE]-GenerateDates":
Caso de Uso: Ideal para interações em tempo real onde o feedback imediato é necessário sem latência do servidor.
Comportamento: Quando a data inicial é maior que a data final, aciona um evento "[CLIENTSIDE]-GenerateDates Initial date is higher than end date". Caso contrário, publica a lista de datas como um estado e aciona o evento "[CLIENTSIDE]-GenerateDates Dates generated".
Ação "[SERVER SIDE] - Generate Dates ":
Caso de Uso: Adequado para cenários onde a geração de datas precisa ser tratada no servidor, como ao lidar com grandes conjuntos de dados ou requerer validação do lado do servidor.
Comportamento: Gera a lista de datas e as retorna junto com uma flag de erro se a data inicial for maior que a data final.
Se você quiser conversar, me mande um email:
[email protected]