-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
412 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div> | ||
<fn-time-picker [index]="1"></fn-time-picker> | ||
<fn-multi-time-picker [startIndex]="1"></fn-multi-time-picker> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
src/app/custom-time-picker/custom-time-picker.component.css
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/app/custom-time-picker/custom-time-picker.component.html
This file was deleted.
Oops, something went wrong.
210 changes: 0 additions & 210 deletions
210
src/app/custom-time-picker/custom-time-picker.component.ts
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
src/app/multi-time-picker/fn-multi-time-picker.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.fn-time-picker-ul { | ||
list-style: none; | ||
border: 1px solid #ccc; | ||
max-height: 160px; | ||
overflow-x: hidden; | ||
scroll-behavior: smooth; | ||
overflow-y: scroll; | ||
padding: 0; | ||
margin: 0; | ||
top: 0px; | ||
width: 182px; | ||
max-height: 160px; | ||
overflow-y: scroll; | ||
} | ||
|
||
.fn-time-picker-ul li { | ||
margin-bottom: 3px; | ||
cursor: pointer; | ||
padding: 5px; | ||
background-color: #f3f3f3; | ||
} | ||
|
||
|
||
.fn-time-picker-ul li:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
/* .fn-time-picker-ul li:first-child{background-color: #777;color: #fff;} */ | ||
.fn-time-picker-ul li:hover, | ||
.fn-time-picker-ul li.active { | ||
background-color: rgb(119, 176, 241); | ||
color: #fff; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/app/multi-time-picker/fn-multi-time-picker.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div> | ||
<input #inputValue [(ngModel)]="searchInputVal" [value]="showInputVal" (click)="openDropDown()" | ||
(keydown)="keyDownChange($event)" maxlength="17" (keyup)="filterValue($event)" /> | ||
<div (click)="closeDropDown()"> | ||
<ul *ngIf="uiItemArray.length > 0 && showDropDown" class="fn-time-picker-ul"> | ||
<li *ngFor="let item of uiItemArray; let i = index" tabindex="{{i}}" [ngClass]="{'active': activeIndex === i }" | ||
(click)="selectedValueFunction(item)">{{item}}</li> | ||
</ul> | ||
</div> | ||
</div> |
Oops, something went wrong.