Giter Site home page Giter Site logo

sashaborandi / ember-sort-filter-table Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crodriguez1a/ember-sort-filter-table

0.0 2.0 0.0 88 KB

A sortable/searchable table addon for ember cli

Home Page: http://demos.evolutionaryapps.com/EmberSortFilterTable/

License: MIT License

JavaScript 67.05% HTML 30.62% CSS 2.34%

ember-sort-filter-table's Introduction

ember-sort-filter-table

A table addon for Ember-CLI with sorting and filtering. 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:

Tables Are Cool
zebra stripes are 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:

name github id
Carlos Rodriguez crodriguez1a

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

ember-sort-filter-table's People

Contributors

crodriguez1a avatar ember-tomster avatar alexdiliberto avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.