npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ember-cli-table-pagination

v0.9.0

Published

An ember addon to add pagination to tables

Downloads

4

Readme

ember-cli-table-pagination

makes it easy to build remote backed tables w/ ember-cli-pagination and bootstrap

This README outlines the details of collaborating on this Ember addon.

Usage

table-pagination

Properties

TODO

Events

TODO

Replaceable components

Here is a list of the replaceable components and their respective defaults

  • titleComponent (table-pagination.table-title): Display the table title if specified
    • should be a component with a body. The body will be replaced by the title.
  • bodyComponent (table-pagination.table-body): wrap up the table body
    • no parameters, will wrap all the component's HTML except the title
  • toolbarComponent (table-pagination.table-toolbar): wrap up the toolbar
    • no parameters, its body will host the quick-search, item/page selector as well as the page selector
  • toolsComponent (table-pagination.table-tools): receive the following parameters:
    • allowQuickSearch(boolean): either or not the quick-search should be enabled
    • searchString(string): two-way binding to the quick-search value
    • perPage(integer): two-way binding to the item/page value
    • refresh(action): action passed on to the refresh action of table-pagination The toolsComponent should display these values and offer the user a way to manipulate searchString and perPage
  • pagerComponent (table-pagination.table-pager): should display the current page number and allow the user to change page
    • count(integer): total amount of pages
    • current(integer): current page number (1-indexed)
    • changePage(action): action passed on the changePage action of the component if the pagination is remotely handled else the component will deal with the page change by itself.
  • contentComponent (table-pagination.table-content):

Note: to allow for more flexibility when overriding the component, a special parameter will be passed to each of the overridable sub-components that can be used to pass arbitrary parameters from the main component to any of its sub-components. These parameters are called: titleParams, bodyParams, toolbarParams, toolsParams, pagerParams & contentParams.

bs-table-pagination

Installation

  • git clone this repository
  • npm install

Running

  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.