ember-semantic-ui-table

4.0.1 • Public • Published

ember-semantic-ui-table

Build Status npm version Ember Observer Score Code Climate

Features

Semantic UI styled tables for Ember.

Installation

ember install ember-semantic-ui-table

Compatibility

  • Ember.js v2.18 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Helpful Links

Looking for help?

If it is a bug please open an issue on GitHub.

Usage

In your controller or component, create a table object and configure it's columns:

import Ember from 'ember';
import { Table } from 'ember-semantic-ui-table'
 
export default Ember.Component.extend({
  table: Ember.computed(function() {
    // Data can be from any source
    let rows = this.get('model');
 
    return Table.create([
      {
        label: 'Name',
        valuePath: 'name'
      },
      {
        label: 'Age',
        valuePath: 'age'
      }
    ], rows);
  })
});

Then, in your template, use the ui-table component and pass the table object for it:

{{ui-table table}}

You can see more advanced examples in the demo page.

Development

To release and publish a new version, use the commands:

ember release (--major|--minor|--patch)
yarn publish

License

This project is developed at QuantoSobra and licensed under the MIT license. See the LICENSE.md file for the full license text.

QuantoSobra © 2017-2019

Package Sidebar

Install

npm i ember-semantic-ui-table

Weekly Downloads

1

Version

4.0.1

License

MIT

Unpacked Size

31 kB

Total Files

44

Last publish

Collaborators

  • quantosobra