Hi all,
Is there a way to trigger an event when a user clicks < or > in the built-in DatePicker to change the month or year? Also, is it possible to display a calendar on the screen all the time instead of only showing it as a popup when clicking the input? If the built-in widget doesn’t support this, what’s the best approach to achieve it?
Thanks in advance.
Can you please check the oml, its working as you want the result ,Demo URL
Use the class to generate any event.
Hi Amit Jain,
Thank you so much.
1. To target your DatePicker specifically, find the Style Class in the widget properties
Use the OnReady event of the screen or block to run JavaScript that detects clicks on the month/year arrows and call your actions as needed.
2. Use this action to make the date picker open.
Note: It will be closed if you clicked anywhere. If you want to keep it always open, call this action whenever you want and pass the values accordingly.
See below oml its working as expected Demo URL
Using css class we can achieve as you want events