material-ui-persian-date-picker-utils icon indicating copy to clipboard operation
material-ui-persian-date-picker-utils copied to clipboard

How to use this library in jquery project

Open monajafi opened this issue 7 years ago • 9 comments

I'd like to use your awsome date picker using jquery Is it possible ? or what should I do to make it for jquery too

monajafi avatar Jan 05 '18 18:01 monajafi

@monajafi This is only a utility library for the material-ui's v0.x date-picker. There are some helpful functions you can take a look at or reuse as you wish. But the component this library was intended for is for react.js. I personally have no clue how you can use it in a jquery project. Maybe it would be best to find a persian date picker or somehow integrate this react component into your project.

alitaheri avatar Jan 06 '18 07:01 alitaheri

Thanks, but it seems difficult to me , How should we can change the your date picker font ?

monajafi avatar Jan 06 '18 11:01 monajafi

@monajafi Again, it's not my date-picker 😅 This is a utility function. to change any kind of styling (font, color, etc.) you need to know how to work with react, material-ui and material-ui's theme solution.

http://www.material-ui.com/#/customization/themes http://www.material-ui.com/#/components/date-picker

If you're interested in this project, I'd suggest you take a look at material-ui-pickers. They are newer and are maintained better (I have implemented persian pickers on their project too). Also, they rely on material-ui v1-beta. which is the cutting edge version.

https://material-ui-next.com/customization/themes/ https://material-ui-pic.firebaseapp.com/

alitaheri avatar Jan 06 '18 14:01 alitaheri

Hi Mr Taheri Thanks for your valuable information, It will take time to me to learn react. the latest material-UI lacks a material datepicker

monajafi avatar Jan 06 '18 19:01 monajafi

Yeah. That's why I ponited you to material-ui-pickers (the last link)

alitaheri avatar Jan 07 '18 04:01 alitaheri

let me know, how to use the library in a .js file please please.

PedramChegini avatar Aug 31 '19 06:08 PedramChegini

@PedramChegini what's your use-case? this library is very old and it's only useful for the 0.x version of material-ui. I'm sure you're in the wrong place. but otherwise please elaborate. what do you mean a .js file?

alitaheri avatar Aug 31 '19 10:08 alitaheri

In first I'm appreciate for your response, in fact i wanna write an example of datepicker in my code do you have any example of your library by the way i checked the material ui website but i couldn't do that. thanks

On Sat, Aug 31, 2019 at 2:52 PM Ali Taheri Moghaddar < [email protected]> wrote:

@PedramChegini https://github.com/PedramChegini what's your use-case? this library is very old and it's only useful for the 0.x version of material-ui. I'm sure you're in the wrong place. but otherwise please elaborate. what do you mean a .js file?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alitaheri/material-ui-persian-date-picker-utils/issues/1?email_source=notifications&email_token=AHIORA24LQC556BHFY4EYWTQHJBAFA5CNFSM4EKTDH22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TJ7ZQ#issuecomment-526819302, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIORA4MMS7ZL5ZTUW2VGTDQHJBAFANCNFSM4EKTDH2Q .

-- ------_ امیر پدرام چگینی

PedramChegini avatar Sep 01 '19 04:09 PedramChegini

@PedramChegini material-ui itself no longer supports date/time pickers. but there is a complementary project that does that. and it has full support for persian date calendar:

https://material-ui-pickers.dev/localization/calendar-systems#jalaali-calendar-system

alitaheri avatar Sep 01 '19 06:09 alitaheri