Comments (4)
Hmm... I'm limited to my phone for a few days, can you put together an example and I'll look into it when I'm back in civilization?
from vue-simple-calendar.
I'm back to a computer, created a test to push a new event, and did not see an issue, using code like this:
this.events.push({ id: 'e12', startDate: this.thisMonth(22), endDate: this.thisMonth(23), title: 'New Event' });
(This is using the sample app's thisMonth()
utility function.)
Two potential issues I can think of before we try to create a more detailed test case:
-
Does your event have both a "startDate" and "endDate"? The calendar doesn't currently support a missing endDate (it should, so if that's the problem, we can convert this to a bug report for that).
-
When you created your dates, can you confirm you used a 0-based month number in your
new Date()
call? That always trips me up, and would result in your new event being created, but rendered on the month after the one intended.
from vue-simple-calendar.
I will check both 1. and 2. when I'm back at my work pc. It's actually possible I forgot to convert the date from ISO format which is sent by my API. I think you can close this issue for now.
from vue-simple-calendar.
I just released 1.5.0, which cleans up a few things, I went ahead and added support to make endDate optional (defaults to start), as well as id (defaults to random) and title (default "Untitled"). Will close for now.
from vue-simple-calendar.
Related Issues (20)
- Bug when using item specific classes HOT 6
- do we support drag in batch? HOT 1
- delete this
- tooltip doesn't work HOT 2
- Misaligned row in demo HOT 4
- missing export in package.json HOT 3
- Clicking & URL issues HOT 2
- How can we get the selected object from the array? HOT 1
- Error of import HOT 3
- Feature Request: Show weekdays only HOT 1
- Error when importing vue-simple-calendar/dist/style.css HOT 3
- Can't use named slots with camelCase like dayContent HOT 2
- Time slots in weekly view HOT 1
- Week Numbers are off by 1 HOT 1
- Day order HOT 2
- v7.0 error [vite:resolve] Failed to resolve entry for package "vue-simple-calendar" HOT 2
- ReadMe update HOT 1
- Month skipping in month view HOT 2
- HTML tags in `title` attribute HOT 1
- Typescript error with moduleResolution: 'bundler'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-simple-calendar.