-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional data fields in event and display then in eventPopover #60
Comments
@jonaslimniatis thanks for using our library. We will update the questions. Yes you can use additional data in for in events. For not is not possible to display more fields. |
@ansulagrawal Thanks for your quick response. It's great to know that events can be customized. However, I encountered a bug while trying to add custom fields. After adding the fields and the summary function, I can no longer see the trips in the calendar. Only the summary value is displayed in the cell. I have thoroughly reviewed all the documentation and examples, but I couldn't find the issue. Do you happen to know how to resolve it? |
Can you share the code or create a demo of it in code sandbox and provide a video for same bug if possible. Thanks again for using our project |
import React, { Component } from 'react'; class Basic extends Component {
} render() {
} nextClick = schedulerData => { onViewChange = (schedulerData, view) => {
}; onSelectDate = (schedulerData, date) => { eventClicked = (schedulerData, event) => { //TODO implement onclick to close event //TODO implement onclick for edit button that opens edit form of trip //this function is implemented but wont be used
}; //this function is implemented but wont be used onScrollRight = (schedulerData, schedulerContent, maxScrollLeft) => {
}; onScrollLeft = (schedulerData, schedulerContent, maxScrollLeft) => {
}; onScrollTop = (schedulerData, schedulerContent, maxScrollTop) => { onScrollBottom = (schedulerData, schedulerContent, maxScrollTop) => { toggleExpandFunc = (schedulerData, slotId) => { } export default wrapperFun(Basic); |
For the Summar component i have made no changes, so i wont think this would be the issue |
Thanks for providing code, will check and provide you solution as soon as possible |
@jonaslimniatis can you please elaborate on your issue so that it can be rectified more easily? If possible can you share video for better understanding |
@JitendraSoni1234 @ansulagrawal Thanks for your help. I figured it out myself. I duplicated the project and made custom adjustments. Afterwards, the summary function worked and the event slots were displayed in the frontend. Before, I could only see the summary values. But I have another question. I am currently working on a custom Popover template where I want my frontend users to be able to make updates from the dialog. I created an onchange property for the field (view picture below), made the value editable, and defined an onChange event. The missing piece is how to update the defined field value for the specific eventItem. I went through the documentation and code, but I couldn't find which function is responsible for showing and loading the specific event. I need this information to update the value. |
@jonaslimniatis can you attach the proper image we can't see the image so |
@ansulagrawal |
@jonaslimniatis thanks for sharing the image. you will have the id for the slot, call a function to get all event slot, update the data you want to update in the slot and use For now you can do this for future we will add one more function in the scheduler to update the event. If you need code for same Please message so will provide you the code |
Hey Ansul, thanks for the good and detailed response. In the attachment you find a picture with corresponding code to the above highlighted data field. Can you please provide code to get the current value of the slot id (defaultValue) and how to update it. Let me know if you need more code snippets to solve the content |
@jonaslimniatis sorry I was too bussy so did not able to provide you the code, please give me 2hrs max will provide you the solution |
@JitendraSoni1234 or @DamyanBG can you help. I tried from my side it did not work so |
I will take a look these days. |
@DamyanBG thank you for looking into the issue |
Checklist
Please make sure the question is worded well enough to be understood
Is there a possiblity to display in popover additional data fields for events (e. g. total sales revnue, next event for same resource).
The text was updated successfully, but these errors were encountered: