flippingbitss / react-daterange-picker Goto Github PK
View Code? Open in Web Editor NEWA react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
License: MIT License
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
License: MIT License
I wanted to change the font-family etc any ideas?
Hello there! I have a question about customization. Everything else is pretty good right now but I prefer to make some changes about how it looks. I tried to make changes in typescript files into /src or into build version but without success...
Hello. Is it possible to translate the names of days of weeks and months into other languages?
if we want to update value of initial date range after api call it is not accepting the value
for example for the first time if i send {startDate: '2024-03-13', endDate: '2024-04-13'} and later if update my value to {startDate: '2024-03-13', endDate: '2024-05-13'} it is still showing selected range is this({startDate: '2024-03-13', endDate: '2024-04-13'})
you have to take new prop like selected daterange to update
or please add useEffect in to update daterange in your code with dependency array initialDateRange
useEffect(()=>{
setdaterange({...initialDateRange})
},[initialDateRange])
Hi,
first congrats for the job. It is a really nice react component. Although, I couldn't build my project using rollup.
Results bellow:
(!)
thishas been rewritten to
undefined https://rollupjs.org/guide/en/#error-this-is-undefined node_modules\@matharumanpreet00\react-daterange-picker\build\index.js 1: "use strict"; 2: var __assign = (this && this.__assign) || function () { ^ 3: __assign = Object.assign || function(t) { 4: for (var s, i = 1, n = arguments.length; i < n; i++) { ...and 5 other occurrences [!] Error: 'DateRangePicker' is not exported by node_modules\@matharumanpreet00\react-daterange-picker\build\index.js https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module- src\Dashboards\Compras\index.jsx (2:9) 1: import React, { Component } from 'react'; 2: import { DateRangePicker, DateRange } from "@matharumanpreet00/react-daterange-picker"; ^ 3: 4: import ContratacoesPorPeriodo from 'ContratacoesPorPeriodo'; Error: 'DateRangePicker' is not exported by node_modules\@matharumanpreet00\react-daterange-picker\build\index.js
package.json:
"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "rollup -c src/rollup.config.js --compact" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@babel/core": "^7.5.5", "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "rollup": "^1.17.0", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-node-resolve": "^5.2.0" }, "dependencies": { "@material-ui/core": "^4.3.0", "@matharumanpreet00/react-daterange-picker": "^1.0.5" }
I am using a Dropdown button from React Bootstrap to display the daterange picker, however, the fields month and year (Select type) don't dropdown when clicked. I'm guessing it is a conflict between the component dropdown and select fields? Any work around this?
Update:
The dropdowns are being displayed pratically outside the screen :/
Hi,
amazing components, simple, straightforward and complete.
may I ask you if there is any way to disable dates in the future?
I'm not sure it's clear to me how to use endDate
and startDate
props.
I would like to translate the component into other languages, such as Brazilian Portuguese .
node_modules/@matharumanpreet00/react-daterange-picker/node_modules/@material-ui/core/styles/createGenerateClassName.d.ts(1,10):
error TS2614: Module '"../../../../../../../../../myProjectPath/node_modules/jss/src"' has no exported member 'GenerateClassName'.
Did you mean to use 'import GenerateClassName from "../../../../../../../../../myProjectPath/node_modules/jss/src"' instead?
Probably related: #1
It seems that the import paths used are not correct.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.