
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
jalaali-react-date-picker
Advanced tools
An advanced jalaali date picker that supports on all of Javascript frameworks, Specially React and React Native
An advanced jalaali datepicker for Reactjs library.
Install jalaali-react-date-picker with npm
npm install jalaali-react-date-picker
Install jalaali-react-date-picker with yarn
yarn add jalaali-react-date-picker
To run tests, run the following command
npm run test or yarn test
Do not forget to import index.css at top of your application
import "jalaali-react-date-picker/lib/styles/index.css";
import { DatePicker } from "jalaali-react-date-picker";
function App() {
return <DatePicker />;
}
import "jalaali-react-date-picker/lib/styles/index.css";
import { RangePicker } from "jalaali-react-date-picker";
function App() {
return <RangePicker />;
}
import "jalaali-react-date-picker/lib/styles/index.css";
import { InputDatePicker } from "jalaali-react-date-picker";
function App() {
return <InputDatePicker />;
}
import "jalaali-react-date-picker/lib/styles/index.css";
import { InputRangePicker } from "jalaali-react-date-picker";
function App() {
return <InputRangePicker />;
}
| Property | Type | Description |
| :------------------ | :---------------------------------------------------------- | :-------------------------------------------------------------------------------------- | -------------------- |
| value
| Moment
| To set date |
| defaultValue
| Moment
| To set default date, if date is null or undefined, the date will be set |
| onChange
| (date: Value, dateString: string) => void
| Callback function, can be executed when the selected date is changing |
| onDayChange
| (day: number) => void
| Callback function, can be executed then return day when the selected date is changing |
| onMonthChange
| (month: MonthValue) => void
| Callback function, can be executed then return month when the selected date is changing |
| onYearChange
| (year: number) => void
| Callback function, can be executed then return year when the selected date is changing |
| disabledDates
| (current: Moment) => boolean \| DisabledValueRange
| To specify the date that cannot be selected |
| dayRender
| (date: Moment,dayNode:React.ReactNode) => React.ReactNode
| Render custom day component in panel |
| renderExtraHeader
| (current:Moment) => React.ReactNode
| Render extra header in panel |
| renderFooter
| (current:Moment) => React.ReactNode
| Render extra footer in panel |
| locale
| fa | en
| Locale configuration |
FAQs
This package is a date picker component for React that supports the Jalaali (Iranian/Shamsi/Persian) calendar system. It provides an easy-to-use interface for selecting a date in the Jalaali calendar and is fully customizable with options for setting the
The npm package jalaali-react-date-picker receives a total of 141 weekly downloads. As such, jalaali-react-date-picker popularity was classified as not popular.
We found that jalaali-react-date-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.