Comments (4)
By the way it's not very good looking at mobile device which i want to use this for my web-apps development.So will it be a way to look better on mobile?
from vue-simple-calendar.
Thanks for the bug report! I found the issue, it was a logical problem when endDate
was not provided. Released version 1.8.2, which fixes this issue.
Displaying text in a 7x6 grid on a small mobile device is always going to be a problem. Changing the font family (to something not as wide as the screen shot above--is that Roboto?) and font size of the parent will help squeeze more text in. With default fonts, the calendar is actually usable even on portrait mode on my iPhone 7 and X. Granted, those are rather large phone screens.
I have a similar need coming up, and have considered doing what other mobile-sized date pickers do--show the date only in the cell, click the cell, and a pop-up window shows the events. However, since the markup would be so different, it's very likely I'll build it as a separate component. Also, there are a number of great Vue-friendly date pickers already out there that could be used for this.
You could actually accomplish this with the current calendar component, but to do it, you'd need to not send it the events
property. Instead, have your parent control respond to the clickDay
event and use that to populate a list of events for that date (using a dialog box or whatever). The tricky part would be to have the component show "empty" days differently that those that have events. For that, you could sent a single event for each date that has any events, but with a very short title (perhaps just an icon) and respond to the clickEvent
event as well as clickDay
to show the events.
But for now, the component is primarily intended for desktop and tablets.
from vue-simple-calendar.
Thank you so much! You are a very efficient person. And very great project.
OK I know it, so I need upgrade to 1.8.2 right?
Second, so I can smaller the font size will be better. Infact I think maybe I can use icon instead.
So , it's good news that you consider to make a mobile-sized one. But I think it can be later and how about make this project can drag and drop on the mobile first?
Yes, what you say accomplish by handler the clickDay event and show the list is very good advice.
Maybe I try it later.
Again,Thanks to you fast replay.
from vue-simple-calendar.
You're welcome! Yes, you'll need to upgrade to 1.8.2.
Yes, making drag and drop work on mobile is already an open issue, and one I hope to resolve soon. I'm happy to have help from anyone more familiar with mobile touch events.
from vue-simple-calendar.
Related Issues (20)
- sometimes getting stuck for even 140 seconds, need some help :) HOT 3
- periodChanged npm update HOT 2
- Modify height for every cells HOT 1
- Cannot change font color for startTime/endTime HOT 3
- 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
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.