How to pass function props (like tileDisabled) in reflex-calendar? #5476
Unanswered
GregorioHUN
asked this question in
Q&A
Replies: 1 comment
-
Perhaps you can use callback props.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Reflex team! 👋
I’m using the reflex-calendar component (which wraps react-calendar), and I’d like to request or understand how to properly implement two props from the original React library:
• tileDisabled
• tileClassName
These aren’t event handlers — they are props that expect JavaScript functions to be called on every tile render.
In Reflex, it’s easy to pass string-based functions to events (like on_change), but I’m not sure how to pass function props like tileDisabled so that the calendar component receives them as actual JS functions — not just strings.
Could you guide me (or show how you’d implement this) in the reflex-calendar wrapper?
Thanks a lot! Loving the project 🙏
Beta Was this translation helpful? Give feedback.
All reactions