Closed adoniscoder closed 7 years ago
Hi @hahmadicorp , Your use case is interesting, glad to know the persian date. :) Initially, I didn't think about using it as a date picker, since Ionic2 provide an official one already. Will see what I can do and keep you post.
Thanks for your response @raychenfj yes I know ionic have date picker and also date time but there is not very good support of other dates specifically for persian date!; I tried that but the result wasn't good. so I decided to write my own
Hi @hahmadicorp
Version 1.1.1 should fix your issue. Also,You can try the dependent picker in the demo https://raychenfj.github.io/ion-multi-picker/, see if it works as you expect ? It should keep the selected index of child column.
Hi, I want to use the library for showing date from another region to user. So I created a years , months and days array to show dates to user. in the target date region (persian date) the first 6 months of year are 31 days and next 5 months are 30 days and finally last month of year 29 or 30 depending of leap year or not. so I used parentVal attribute in days array to assign days to specific month but the problem is when user change the month for example 2 the days array will be refreshed but when I want to scroll the days it's only go on 2 and it's restart again and goes to 1. it's problem doesn't exist on first month and when month changes it's not working correct.
my function which make data for array:
initialize step of array : `
let y = this.persianDate.getYears(); let m = this.persianDate.getMonthes(); let d = this.persianDate.getDays();
and the view : `
`