Skip to content

Commit

Permalink
Updated README.md to describe the new initialColumnSizes and initialR…
Browse files Browse the repository at this point in the history
…owSizes attributes + version bump 0.7.7
  • Loading branch information
eshirazi committed Dec 30, 2017
1 parent 42ec3ff commit f2c23d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ A simple usage of a table with colorful table cells (this is the code for creati
.color5 { background: #01FF70; }
```

## Initial Column and Row Sizes

It's also possible to customize initial row and column sizes via the optional `initialColumnSizes` and `initialRowSizes` attributes.
The following example uses the [Ember Array Helper](https://github.com/kellyselden/ember-array-helper):

```handlebars
{{#resizable-table initialRowSizes=(array 0.5 0.25 0.25) initialColumnSizes=(array 0.25 0.5 0.25) class="main-table" as |table|}}
...
{{/resizable-table}}
```

## Example Project

An example project can be found inside the `tests/dummy` folder of this addon: https://github.com/eshirazi/ember-resizable-table/tree/master/tests/dummy.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-resizable-table",
"version": "0.7.6",
"version": "0.7.7",
"description": "A table with resizable cells component for Ember.js",
"keywords": [
"ember-addon"
Expand Down

0 comments on commit f2c23d6

Please sign in to comment.