dmp button filter

This commit is contained in:
annampak 2017-11-07 16:03:12 +02:00
parent 502d929186
commit ca656416a8
2 changed files with 13 additions and 4 deletions

View File

@ -60,6 +60,7 @@ export class DmpComponent implements OnInit{
@Input() projectsDropDown:DropdownField;
@Input() dataSetVisibe:boolean;
@Input() statusDropDown: DropdownField;
@Input() isSelected:boolean;
//@Input() projects: Project[];
dmpIdforDatasets: string;
dmpLabelforDatasets:string;
@ -78,6 +79,7 @@ export class DmpComponent implements OnInit{
//this.projects = [];
this.dmpTableVisible = false;
this.dataSetVisibe = false;
this.isSelected=false;
this.dmp = {
id: null,
@ -196,6 +198,7 @@ selectDmp(item){
}
editRow(item, event){
this.isSelected = true;
if (event.toElement.id == "editDMP"){
this.dmp.label = item.label;
this.dmp.previous = item.previous;
@ -264,7 +267,13 @@ deleteRow(dmp){
}
clickFilters(element){
console.log(element);
if(element.textContent == "More filters")
element.textContent = "Less Filters";
else
element.textContent = "More Filters";
}
}

View File

@ -14,10 +14,10 @@
</th>
<th class = "rowFilterTopBorder" colspan="3">
<button type="button" class="btn btn-info btnMoreFilters" data-toggle="collapse" data-target="#demo">More filters</button>
<button type="button" class="btn btn-info btnMoreFilters" data-toggle="collapse" data-target="#demo" (click)="clickFilters($event.target)">More filters</button>
<div id="demo" class="collapse">
<input class="form-control" type="number" [(ngModel)]="versionFilter" placeholder='Version'/>
<select class="form-control" [id]="statusid" [(ngModel)]="statusFilter" [name]="statusDropDown" #datasetfield >
<input style= "margin-top: 5px;" class="form-control" type="number" [(ngModel)]="versionFilter" placeholder='Version'/>
<select style= "margin-top: 5px;" class="form-control" [id]="statusid" [(ngModel)]="statusFilter" [name]="statusDropDown" #datasetfield >
<option *ngFor="let opt of statusDropDown.options" [value]="opt.key">{{opt.value}}</option>
</select>
</div>