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
I want to add some functionality (button or inputs) to day header. When button clicked, I need to pass date and resourceId to my function. Date is already passed to custom header but I cannot access resourceId.
What's the expected behavior?
components={{
day: {
header: ({date, label, localizer /* resource may be added here */}) =>
<div>
<div>{moment(date).format("DD/MM/YYYY")}</div>
<button onClick={() => this.doSomething(date, resourceId)}></button>
</div>
}
}}
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
feature
What's the current behavior?
I want to add some functionality (button or inputs) to day header. When button clicked, I need to pass date and resourceId to my function. Date is already passed to custom header but I cannot access resourceId.
What's the expected behavior?
The text was updated successfully, but these errors were encountered: