Comments (15)
Hi @gaurav99t
I understand that you want to choose different date
each of PIGNOISE calendar elements.
if you give date
option as moment object.
You can initialize date each of calendar.
Follow the below snippet.
$('.calendar1').pignoseCalendar({
date: moment('2017-05-01');
});
$('.calendar2').pignoseCalendar({
date: moment('2017-07-22');
});
$('.calendar3').pignoseCalendar({
date: moment('2017-08-01');
});
from pg-calendar.
thank you for your reply, but it did not help me out. i used following code but none of them is working for me
$('.calender1').pignoseCalender({date: moment('2017-05-01'),
select: function(date, obj) {
var text = ( date[0] === null? 'null':date[0].format('YYYY-MM-DD') );
moveToolTip(text);
}
});
$('.calendar1').pignoseCalendar({
date: moment('2017-05-01');
});
from pg-calendar.
Hi @gaurav99t
date
option will initialize starting date.
However select
will be executed after only user select a date.
Do you want to execute select
or something method for display a tooltip?
from pg-calendar.
yes i want to display multiple calendars on a single page and all these calendars will have different dates by default loading. And tooltip will be displayed on mouse move
from pg-calendar.
Hi @gaurav99t
I understand that you want to initialize calendar when calendar is ready (with date value).
Unfortunately there is no feature right now (v1. 4.13).
I will add initialized
callback within tommorow.
from pg-calendar.
Can you just help me to get 12 calendars initialized with 12 different dates? My tooltip works on mousemove. this is my last problem for this work.
Just help me to make this code work for the date entered in moment. Do i need to include any other js file too for making it work?
$('.calender1').pignoseCalender({date: moment('2017-05-01'),
select: function(date, obj) {
var text = ( date[0] === null? 'null':date[0].format('YYYY-MM-DD') );
moveToolTip(text);
}
});
from pg-calendar.
Hi @gaurav99t
I can help to solve your problem.
But, The information that you gave seems a little bit short.
Can you add some snippet or example?
It will be helful to solve these problem if you do that.
Thank you.
from pg-calendar.
here is attached file that im using for displaying tooltip into the calendar
in pignose.calender.js i replaced click with mousemove to make it work on mousemove.
please move mouse on 18 to 24 APR 2017 tooltip will appear
$unit.bind('mousemove', function(event) {
now my only problem is left, i just want to display next 11 months with currrent month.
if this is done then im done with this issue :-)
from pg-calendar.
hello @gaurav99t
I'm really sorry about late reply.
I thin i still don't understand what you wanted.
However i try to fix your problem Please check attachment file.
mousemove
event is not good UX, I changed this event to mouseenter mouseleave
And i added the date
option on your inline script as following.
$('.calender1').pignoseCalender({
select: function(date, obj) {
/*obj.calender.parent().next().show().text('You selectTMPed ' +
(date[0] === null? 'null':date[0].format('YYYY-MM-DD')) +
'.');*/
//alert(date[0] === null? 'null':date[0].format('YYYY-MM-DD'));
var text = ( date[0] === null? 'null':date[0].format('YYYY-MM-DD') );
//alert(text);
//document.getElementById("tooltip").innerHTML = text;
//grabId(event);
moveToolTip(text);
},
date: moment().add('11', 'M').startOf('month')
});
I hope this solution is what you wanted.
Thank you.
from pg-calendar.
thanks for lot for your time
I can not find tooltip working when my mouse enters in the calendar and moves on different dates, these are the dates that has tooltip
{"2017-04-18":"This is tool tip 1", "2017-04-19":"This is tool tip 2", "2017-04-20":"This is tool tip 3", "2017-04-21":"This is tool tip 4", "2017-04-22":"This is tool tip 5", "2017-04-23":"This is tool tip 6", "2017-04-24":"This is tool tip 7"}
BTW i have used another calendar that solved out my problem :-)
thanks a lot again for your help
from pg-calendar.
Hello @gaurav99t
I am glad you have solved this problem.
Thank you
from pg-calendar.
Hello @KennethanCeyer I want to add event when clicks on next and prev month in toggle calendar. I tried lot of methods but not worked for me.
from pg-calendar.
I am hard working right now in cafe, South Korea.
Sorry i'm late but i'm focusing to add this feature.
It will be updated at 1.4.21
Thank you.
from pg-calendar.
Your topic is realted #39 .
And i will close this issue, Please check #39 to confirm the progress.
Thank you.
from pg-calendar.
please add default selected dates feature. Which will be already selected when calendar loads. This will help me a lot.
from pg-calendar.
Related Issues (20)
- Update schedules upon changing month HOT 1
- Execute select without user click
- Problem in november 2020 HOT 4
- Languages HOT 1
- Problem with select week
- Add Event Method
- desperately needs a year selector!
- minDate doesn't disable dates previous to current
- Default Color for events
- Buttons + Date range over 2 months HOT 1
- How to setting year(+543) for Buddhist era?
- June is misspelled for monthsLong in en
- todo: migrate typescript
- is there any way to select date range via JavaScript in the calendar HOT 2
- date.split is not a function in pignose.calendar.js
- When setting date on a Calendar that has an offset week start, range starts on incorrect day.
- Hide saturday & sunday
- I have configured the pignose js and CSS files in my django project. I could able show the calender but PREV & NEXT arrows are not visible i . Instead it showing the boxes... Please help me
- Do data "deselect" after closing modal.
- How can I set a range of dates during the initialisation of calendar?
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 pg-calendar.