New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ember-sort-filter-table

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-sort-filter-table

A sortable/filterable table add-on for your ember application

latest
Source
npmnpm
Version
0.3.4
Version published
Weekly downloads
138
13.11%
Maintainers
1
Weekly downloads
 
Created
Source

npm version Build Status Ember Observer Score

ember-sort-filter-table

A table add-on for Ember-CLI with sorting and filtering. Full Documentation & Demo

Installation

	ember install ember-sort-filter-table

Usage

Simply pass an array of objects as the table parameter to the component. Use the key rows to define your array as follows:

	/**
	  .js
	  Defining a model that my table will display
	*/
	let model = {
	  rows: [
	    {
	      Tables: 'zebra stripes',
	      Are: 'are neat',
	      Cool: '$1'
	     }
	   ]
	 };		 

	...

	{{! some-template.hbs }}
	{{component "sort-filter-table" table=model}}

The addon will assemble the table headers from the object keys and display a table like this:

TablesAreCool
zebra stripesare neat$1

If your model has properties that should not be displayed in the table, use an underscore to mark that property as private.

	let model = {
	  rows:[
	    {
	      name: 'Carlos Rodriguez',
	      github_id: 'crodriguez1a',
	      _writesCode: true
	    }
	  ]
	};

The model above would display like this:

namegithub id
Carlos Rodriguezcrodriguez1a

Contribute

Collaboration is welcome and greatly appreciated. To collaborate on this project, follow the instructions that follow.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Keywords

ember-addon

FAQs

Package last updated on 22 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts