Pop-up Customization #941
-
I'm still evaluating calendar pop-up customization options and the two options I've found so far are not convincing me to go down their road: Option 1: Create my own pop-up.
Option 2: Edit the code of the original popup, by forking the repo.
What I would like to ask is: Is there any function that executes right after the pop-up is built and displayed? I'm thinking of using this event to make some changes to the pop-up html content with JavaScript. I will then use my own changes to capture and process the additional information I need. Let me know if (and why) you think this is a bad idea and what in your opinion is the optimal way to make changes to the pop-up. Thank You |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes, Those options are exactly defined like when I explain to someone else about the current status. And your idea is fair enough, But I found that It's quite hard to provide a way to intercept the popup element at the current stage.
Also, the team is working on the next major update. I'll try to resolve this problem in the next major version. But I don't see the point to put the resource at this time since there's 'option 1' already. |
Beta Was this translation helpful? Give feedback.
-
Maybe a good idea for the next major update is to provide an option for us to customize the content of the pop-up with flags. Like a flag for displaying an additional free text entry field, another one for a dropdown, etc... |
Beta Was this translation helpful? Give feedback.
-
I would very much welcome such an opportunity. setTimeout(function() {
// deb(document.querySelectorAll('.tui-full-calendar-time-date'))
document.querySelectorAll('.tui-full-calendar-time-date').forEach(item => {
item.addEventListener('click', event => {
if (event.target.classList.contains('tui-full-calendar-time-date-schedule-block-wrap')) {
deb(event.target)
setTimeout(function() {
document.getElementById('tui-full-calendar-schedule-location').value = "myLocation"
}, 500);
}
})
})
}, 500); |
Beta Was this translation helpful? Give feedback.
@ilija-jovev
Yes, Those options are exactly defined like when I explain to someone else about the current status.
And your idea is fair enough, But I found that It's quite hard to provide a way to intercept the popup element at the current stage.
form
to gather and pass the data. When the user clicks the 'Save' button, the popup collects data from DOM directly. This makes us hard to add and manage inputs dynamically.