Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datePicker 实现文本框中弹出日期范围选择 #9

Open
leeguiman opened this issue Aug 28, 2017 · 2 comments
Open

datePicker 实现文本框中弹出日期范围选择 #9

leeguiman opened this issue Aug 28, 2017 · 2 comments

Comments

@leeguiman
Copy link

大神,datePicker 怎么实现popup的Range select;看api半天没有什么头绪,
<ng-template #t let-date="date" let-focused="focused">
<span class="custom-day"
[class.focused]="focused"
[class.range]="isFrom(date) || isTo(date) || isInside(date) || isHovered(date)"
[class.faded]="isHovered(date) || isInside(date)"
(mouseenter)="hoveredDate = date"
(mouseleave)="hoveredDate = null">
{{ date.day }}


这个代码块不知道该怎么处理,求指导,拜谢!!!

@leeguiman
Copy link
Author

补充一下,就是用一个文本框实现的那种,而不是两个文本框(开始日期和结束日期)实现,两个文本框很容易,但是想求教能不能实现的更理想一些

@myopenresources
Copy link
Owner

@leeguiman 现在这个我是用ng-bootstrap的,我自己也没有研究

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants