a library for building an app with date picking
npm install jodifo-date-pickerThis is a react library that provides components to work with tasks management
to install run:
yarn add jodifo-date-picker
note that you need have react and react-dom libraries installed in your project
First import DatePicker from library
```
import { DatePicker } from "jodifo-date-picker";`
Then inside of application you need to connect this component to state
const [defaultValue, setDefaultValue] = useState("");
setDateValue={(newValue) => setDefaultValue(newValue)}
/>
`
Note, that state should be of type string
First import RangePicker from library
``
import { RangePicker } from "jodifo-date-picker";`
Then inside of application you need to connect this component to state
const [defaultValue, setDefaultValue] = useState(["", ""]);
setDateValue={(newValue) => setDefaultValue(newValue)}
/>
``
Note, that state should be of type [string, string]
You can also specify other parameters
- maxDate: {year: number, month: number from 0 to 11, day: number}
- minDate: {year: number, month: number from 0 to 11, day: number}
- showWeekends: boolean
- showHolidays: boolean
- startFromMonday: boolean
- weekView: boolean
- run yarn test-unit to run unit tests
- run yarn lint to lint application
- run yarn lint-fix to lint application and fix errors
- run yarn build to build application
- run yarn build-storybook to build static storybook files
- run yarn storybook to start storybook on local server