You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose the business calendar's workday array via a method.
Details
workday is currently private so custom workday function hooks are unable to reference it.
I'd like to implement a custom WorkdayFunc while still leveraging the existing workday array pattern. In this case I can't use IsWorkday in the custom hook because it would lead to an infinite loop. It's a small array so exposing it via a method with an array-copy would prevent the underlying array from being modified arbitrarily by the caller.
The text was updated successfully, but these errors were encountered:
gavingolden
changed the title
Make workday variable public so that hooks can use them
Expose business calendar workday variable via a method so that hooks can use them
Jul 14, 2023
gavingolden
changed the title
Expose business calendar workday variable via a method so that hooks can use them
Expose business calendar workday variable via a method so that hooks can use it
Jul 14, 2023
Request
Expose the business calendar's
workday
array via a method.Details
workday
is currently private so custom workday function hooks are unable to reference it.I'd like to implement a custom
WorkdayFunc
while still leveraging the existingworkday
array pattern. In this case I can't useIsWorkday
in the custom hook because it would lead to an infinite loop. It's a small array so exposing it via a method with an array-copy would prevent the underlying array from being modified arbitrarily by the caller.The text was updated successfully, but these errors were encountered: