How can i create a calendar with customization days using Reactjs? - javascript

i'm a reactjs beginner, i want to create a Calendar using ReactJS in range two days, but i want to divide the squares of days two three shifts or divs each shift/div can be clickable. Like this picture.
I Tried React-Big-Calendar, Calendar, and React-Calendar but no one of them can give me what i want, anyone can help me?

You can use React-Component Calendar and return div in dateRender

Related

How to enable months view in date picker material ui

I'm currently making a date-picker using Material UI in REACT. I'm struggling to find a solution where I can click on the month label/text that will make it show months only.
I can make it show the desired view of months only if i add views={["month"]} prop to the component.
check this codesandbox https://codesandbox.io/s/8gpxl
If you add views={["month"]} as prop in the component. You will see that it has my desired effect/view. However i'm struggling to find a way i can switch to this view on click of months text.
So in the codesandbox where the datepicker is displayed. I would like to click on 'August 2014' which will then make the views={["month"]}
I've tried searching the documentation thoroughly and still can't find a solution. I can't use onChange as that's specifically handling the date, i've tried/thought of doing onClick but that will make it apply to whole component rather than the month label.
I can't seem to find a solution to do it however i feel like it's possible because on the second datePicker in the codesandbox where it doesn't have prop disableToolbar. If you click on the year 2014, it then toggles the whole datePicker view to the years. I need it do the same for months when i click on August 2014. So it does seem possible, just need a little help figuring out how.

ReactJS Ant Design - Use Range Picker as Multi Month View with Single date selection

I have a requirement of implementing Multiple Month View which shows two months calendar side by side exactly like RangePicker but to be able to choose only single date, not a range.
I have made a Sandbox
If anyone has worked on such solution, please help.
Thanks.
I worked on something similar recently. I made an override to the Ant CMS for the range selection blue background. I just kept the styling for the dates that are clicked, and I just kept the two selected dates instead of the entire range.
It's a hack, but it worked fine and I've yet to run into any issues with it.
Set allowEmpty={[false, true]} disabled={[false, true]}
Demo

fullcalendar Month View Issues

I'm trying to use FullCalendar in my new project but I can't find any information on how to do what I want. Has anyone done something similar or have any idea on how I can achieve this? My aim is to have a Month View of the calendar like this:
However, what ever I've tried I couldn't make the 2 slots visible in the Month View.
What is displayed within those 2 slots? You will probably have to make your own custom view for this.
https://fullcalendar.io/docs/custom-views

Make a slider for hourly weather forecast

I am trying to make a weppage for hourly weather forecast. I have extracted data from an api and stored it in an array.
I want to display that data in a way that it shows 10 hours of forecast,with 5 entries being actively shown.I want to create a slider like this:
http://www.accuweather.com/en/au/melbourne/26216/hourly-weather-forecast/26216
I have stored the data in a table and now need to make it slide or make it in form of carousel.
i have searched on internet,but most of them are for images or are either plugins.
Can somene please help me to understand how to create this effect. I dont wana use plugin.
An incredibly simple approach would be to use JQuery Show and Hide.By default, you show the first view.On clicking the next button, you hide that view, and show another view.So on and so forth.
This is slightly crude, but does the job. Additionally, you cause use animations to transition them in and out.

jscolor with multiple color-pickers visible?

i'm using the jscolor color picker. i need to have multiple pickers visible on the page at the same time. i've tried various permutations of picker.showPicker(), but i always get only the last picker displayed. i've verified that the created instances of new jscolor.color(picker) are distinct and valid, but can't figure out how to display even 2 different instances simultaneously. anyone have any experience with this package who could give me some insight as to how i could do that?
thanks.

Categories

Resources