pipe - Dropdown select option pagination in angular 2 -


i need create dynamic table pagination. want create drop down select option “show 50, 100, all” next , previous buttons.

change itemsperpage set variable. set initial value whatever think best. can add https://www.npmjs.com/package/ngx-dropdown , set dropdown values 50 100 etc. wrap pagination ngif* if value 'all' pagination ignored , rows shown.

or if have flexibility recommend primeng: https://www.primefaces.org/primeng/#/paginator


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -