change function name
This commit is contained in:
parent
115c298da2
commit
d1d455e89f
|
@ -56,7 +56,7 @@ export class DmpComponent implements OnInit{
|
|||
this.dmps = [];
|
||||
this.serverService.getDmpOfUser().subscribe(
|
||||
response => {
|
||||
|
||||
debugger;
|
||||
response.forEach(resp => {
|
||||
let pr = new Dmp();
|
||||
pr.id = resp.id;
|
||||
|
@ -111,7 +111,7 @@ afterLoad(){
|
|||
this.dmpResource.count().then(count => this.dmpCount = count);
|
||||
}
|
||||
|
||||
myFunction() {
|
||||
filterGrid() {
|
||||
var input, filter, table, tr, td, i;
|
||||
input = document.getElementById("myInput");
|
||||
filter = input.value.toUpperCase();
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
<div style="margin: auto; max-width: 1000px; margin-top:50px">
|
||||
<div>
|
||||
<span>Filter: </span>
|
||||
<input type="text" id="myInput" (keyup)="myFunction()" placeholder="Search for labels.." title="Type in a name">
|
||||
<input type="text" id="myInput" (keyup)="filterGrid()" placeholder="Search for projects.." title="Type in a name">
|
||||
</div>
|
||||
<data-table id="dmps-grid" headerTitle="My Dmps" [items]="dmps" [itemCount]="dmpCount" (reload)="reloadDmps($event)"
|
||||
[limit]="8" [sortBy]="'rating'" [sortAsc]="false" [selectColumn]="true" [multiSelect]="false" [substituteRows]="false"
|
||||
[expandableRows]="true" [translations]="translations" [indexColumnHeader]="'#'" [selectOnRowClick]="true">
|
||||
|
||||
|
||||
<data-table-column [property]="'label'" [header]="'Label'" [sortable]="true">
|
||||
</data-table-column>
|
||||
<data-table-column [property]="'abbreviation'" [header]="'Abbreviation'" [sortable]="true">
|
||||
|
|
Loading…
Reference in New Issue