Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
Vasim committed Dec 24, 2019
1 parent 675393e commit 5af1c73
Show file tree
Hide file tree
Showing 11 changed files with 412 additions and 273 deletions.
Binary file added src.zip
Binary file not shown.
1 change: 1 addition & 0 deletions src/app/app.component.html
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>
4 changes: 2 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { CustomTimePickerComponent } from './custom-time-picker/custom-time-picker.component';
import { FnTimePickerComponent } from './time-picker/fn-time-picker.component';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { FnMultiTimePickerComponent } from './multi-time-picker/fn-multi-time-picker.component';

@NgModule({
declarations: [
AppComponent,
CustomTimePickerComponent,
FnMultiTimePickerComponent,
FnTimePickerComponent

],
Expand Down
30 changes: 0 additions & 30 deletions src/app/custom-time-picker/custom-time-picker.component.css

This file was deleted.

11 changes: 0 additions & 11 deletions src/app/custom-time-picker/custom-time-picker.component.html

This file was deleted.

210 changes: 0 additions & 210 deletions src/app/custom-time-picker/custom-time-picker.component.ts

This file was deleted.

33 changes: 33 additions & 0 deletions src/app/multi-time-picker/fn-multi-time-picker.component.css
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 src/app/multi-time-picker/fn-multi-time-picker.component.html
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>
Loading

0 comments on commit 5af1c73

Please sign in to comment.