B4xlib files are zip compressed files. So just change the extension from .b4xlib to .zip and extract the content.
Among the file you'll find the class you need (B4XDateTemplate). Save it with a different name (to avoid conflicts) and change its code as it suits your needs.
Then in your app refer to your version of the template instead of using the original one.
B4xlib files are zip compressed files. So just change the extension from .b4xlib to .zip and extract the content.
Among the file you'll find the class you need (B4XDateTemplate). Save it with a different name (to avoid conflicts) and change its code as it suits your needs.
Then in your app refer to your version of the template instead of using the original one.
Before you embark in modifying the class module, you may want to look at post #7 by Erel in the below thread that has a full example to disable dates outside a 10 day range on either side of the current date. It can be modified to say, allow only dates from today forward and so on.
Hi, I reecently switched to B4XDateTemplate in XUIViews as the older datepicker I used no longer working with B4A10.7 Now, one silly question is how can I prevent users to select a date wich is not allowed by default? I need to limit each user to allow only from a limited number of days to be...
Before you embark in modifying the class module, you may want to look at post #7 by Erel in the below thread that has a full example to disable dates outside a 10 day range on either side of the current date. It can be modified to say, allow only dates from today forward and so on.
Hi, I reecently switched to B4XDateTemplate in XUIViews as the older datepicker I used no longer working with B4A10.7 Now, one silly question is how can I prevent users to select a date wich is not allowed by default? I need to limit each user to allow only from a limited number of days to be...
Ya. I saw this post also. But I like to "pre disable" the date selection rather than user try the date one by one. because I want to apply the calendar in booking function, some date was already booked. so I like to disable it before user click the date.