Skip to content

Commit

Permalink
Merge pull request #3 from sendilkumarn/jhi-item
Browse files Browse the repository at this point in the history
Jhi item
  • Loading branch information
deepu105 authored Dec 29, 2016
2 parents 877afc0 + 0ed528e commit 77e991e
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions src/component/jhi-item-count.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Component, Input } from '@angular/core';


/**
* A component that will take care of item count statistics of a pagination.
*/
@Component({
selector: 'jhi-item-count',
template: `
Expand All @@ -10,9 +29,21 @@ import { Component, Input } from '@angular/core';
</div>`
})
export class JhiItemCountComponent {
@Input() page: any;
@Input() total: any;
@Input() itemsPerPage: any;

/**
* current page number.
*/
@Input() page: number;

/**
* Total number of items.
*/
@Input() total: number;

/**
* Number of items per page.
*/
@Input() itemsPerPage: number;

constructor() {}
}

0 comments on commit 77e991e

Please sign in to comment.