npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

reactjs-infinite-calendar

v1.0.6

Published

React js Infinite scrolling date-picker, with multiple select, single select, inifinte scrolling, min and max date, and more.

Downloads

12

Readme

ReactJs Infinite Calendar


ReactJs Infinite Calendar is a library for generating Infinite scroll with single and multiple select.

Features

  • Infinite scroll – Just keep scrollin', just keep scrollin'
  • Flexible – Min/max date, disabled dates, selected dates, etc.
  • Extensible – Multiple date selection, Single Date Selection
  • Customizeable – Customize Css according to your theme.
  • Mobile-friendly – Silky smooth scrolling on mobile

Getting Started

Installation

npm install reactjs-infinite-calendar

Usage

Step 1

npm install reactjs-infinite-calendar

Step 2

import InfinitCalendar from "reactjs-infinite-calendar";

Step 3

    <InfinitCalendar
        calendarHeight={600}
        calendarWidth={500}
         renderMinDate={new Date(2022, 0, 1)}
        renderMaxDate={new Date(2022, 11, 31)}
        inifinityScroll={true}
        isMultipleSelect={true}
        selectedDates={["02-09-2022"]}
        handleDateSelect={(date) => {
            console.log(date);
        }}
        disabledDates={["01-09-2022"]}
    />

Prop Types

| Property | Type | Default | Description | | :--------------------------- | :------- | :------ | :----------------------------------------------------------------------------------------------------------------------- | | calendarWidth | Number | 450 | Width of the calendar, in pixels | | calendarHeight | Number | 600 | Height of the calendar, in pixels | | renderMinDate | Date | | The minimum month that can be scrolled to, If inifinite scroll is true, then its disabled all dates before renderMinDate | | renderMaxDate | Date | | The maximum date that can be scrolled to, If inifinite scroll is true, then its disabled all dates after renderMaxDate | | visibleDate | Date | | The date is to be visible when calendar initinal render | | inifinityScroll | Bool | true | Allow calendar to scroll inifinte times. | | isMultipleSelect | Bool | false | Allow to select multiple dates | | disabledDates | Array | [] | Array of dates that should be disabled. For example: ["13-02-2022"] | | selectedDates | Array | [] | Array of dates that should be selected. for example ["13-02-2022"] | | handleDateSelect | Function | | Callback invoked after date is selected. | | calendarContainerClass | String | '' | Class thats add to the main container of Calendar. | | calendarHeaderContainerClass | String | '' | Class thats add to ther header container of Calendar. | | calendarDateContainerClass | String | '' | Class thats add to the date container of Calendar |

Reporting Issues

If you find an issue, please report it along with any relevant details to reproduce it. Its is a great help to improving the packages

Future Release

  • Date Range Selection
  • Horizontal Scroll
  • Customized Month To Render

Dependencies

React Infinite Calendar has very few dependencies. It relies on moment.js,prop-types. It also has the following peerDependencies: react.

Author

[Kawal Jain]

License

reactjs-infinite-calendar is available under the MIT License.