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 🙏

© 2026 – Pkg Stats / Ryan Hefner

fabulous-table

v1.0.7

Published

Table with full support of components for Ember

Readme

Fabulous-Table

This is a component supporting table component for ember apps. It features sorting and endless scrolling.

npm version Download Total

The usage may look a little complicated. This is because you can use any template code you would normally use outside of this component. You even could use another fabulous table inside a cell of your first usage of fabulous table.

Installation

yarn add fabulous-table (or npm install fabulous-table)

Usage

{{#fabulous-table headers=(array
    (hash label='' headerClass='user-image-header')
    (hash label='Surname' orderPath='surname')
    (hash label='Firstname' orderPath='firstname')
    (hash label='')
) orderBy=orderBy
  orderDirection=orderDirection
  changedOrder=(action 'findUsers')
  modelName='user'
  limit=50
  rowAction=(action 'navigateToUser')
  fixedHeader=true
  noSpinner=true
  model=users as |item|}}
    {{#fabulous-cell cellClass='user-image'}}
        {{profile-photo value=item.photo}}
    {{/fabulous-cell}}
    {{#fabulous-cell}}
        {{item.surname}}
    {{/fabulous-cell}}
    {{#fabulous-cell}}
        {{item.firstname}}
    {{/fabulous-cell}}
    {{#fabulous-cell preventPropagation=true}}
        <button {{action 'clickedButton'}}>Click me</button>
    {{/fabulous-cell}}
{{/fabulous-table}}
  • headerClass adds a CSS class to the header of a column. (String)
  • orderPath defines the key of an item by which this column will sort. If you omit orderPath this column is not sortable. (String)
  • orderBy specifies the default key by which the table will be sorted on rendering. (String)
  • orderDirection specifies the default direction for the sorting on rendering. (String)
  • changeOrder is the action which is called on a click on a header. ('asc' or 'desc')
  • modelName is the ember model's name of the records. (String)
  • limit specifies the maximum amount of items for the initial rendering. Also this enables endless scrolling: This amount is fetched if you scrolled to bottom. (Number)
  • rowAction is the action which is called on a click on a row. ((action 'actionName'))
  • fixedHeader fixes the header at the top of the table if the table itself will scroll (true or false)
  • noSpinner Hides the spinner at the bottom of the page (true or false)
  • model contain the records. (Object)
  • cellClass adds a CSS class to each cell of this column. (String)
  • preventPropagation stops propagation if the click event of that cell. (true or false)

As you can see the headers are separated from the cells. You can use a different orderPath as you use in the cell.

The table provides the normal table layout (it uses table tags inside) but you can add layout classes like bootstrap or whatever you are using.

Contribution

To serve the dummy app run ember serve.

If you've changed something in the addon and want to see those changes in the dummy app you have to link the addon.

yarn link
cd tests/dummy && yarn link fabulous-table