0.3.4 • Published 7 years ago

ember-sort-filter-table v0.3.4

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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/.

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.83

8 years ago

0.1.82

8 years ago

0.1.81

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago