Skip to content

Commit

Permalink
Released version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Dec 27, 2015
1 parent c85d4be commit 91452ed
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 14 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,13 @@
## Changelog

### v0.5.9 (master, released on Dec 14th 2015)
### v0.6.0 (master, released on Dec 26th 2015)
#### Features
- Sortable can be defined where the columns are defined [#193](https://github.com/Zizzamia/ng-tasty/issues/193)

#### Bug Fixes
- Fixed bind-reload pagination issue [#186](https://github.com/Zizzamia/ng-tasty/issues/186)

### v0.5.9 (released on Dec 14th 2015)
#### Features
- Reload table on specific page [#160](https://github.com/Zizzamia/ng-tasty/issues/160)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "ng-tasty",
"version": "0.5.9",
"version": "0.6.0",
"homepage": "https://github.com/Zizzamia/ng-tasty",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ng-tasty",
"version": "0.5.9",
"version": "0.6.0",
"description": "A lightweight, flexible, and tasty collection of reusable UI components for AngularJS.",
"main": "dist/ng-tasty-tpls.min.js",
"devDependencies": {
Expand Down
21 changes: 17 additions & 4 deletions website/static/js/pages/table.js
Expand Up @@ -109,10 +109,23 @@ angular.module('myApp.pages.table', [])
$rootScope.page = 'table';
$rootScope.innerPage = 'sorting';
$scope.resource = {
'header': [
{ 'key': 'name', 'name': 'Name', 'style': {'width': '50%'} },
{ 'key': 'sf-Location', 'name': 'SF Location', 'style': {'width': '35%'} },
{ 'key': 'star', 'name': 'Star', 'style': {'width': '15%'}, 'class': ['text-right'] }
'header': [{
'key': 'name',
'name': 'Name',
'style': {'width': '50%'}
},
{
'key': 'sf-Location',
'name': 'SF Location',
'style': {'width': '35%'},
'sortable': false
},
{
'key': 'star',
'name': 'Star',
'style': {'width': '15%'},
'class': ['text-right']
}
],
'rows': tableResource.rows,
'sortBy': 'star',
Expand Down
3 changes: 2 additions & 1 deletion website/template/table-server-side/docs-head.html
Expand Up @@ -34,7 +34,8 @@
<ul>
<li>
<p><code><span style="color:orange">bind-</span>not-sort-by</code> (Defaults: [ ])
: list key columns not want sort, if is empty will not sort any column.
: list key columns not want sort, if is empty will not sort any column. You can also disable
the sorting by adding <code>sortable: false</code> inside the column header values.
</p>
</li>
<li>
Expand Down
3 changes: 2 additions & 1 deletion website/template/table/docs-header.html
Expand Up @@ -38,7 +38,8 @@
<ul>
<li>
<p><code><span style="color:orange">bind-</span>not-sort-by</code> (Defaults: [ ])
: list key columns not want sort, if is empty will not sort any column.
: list key columns not want sort, if is empty will not sort any column. You can also disable
the sorting by adding <code>sortable: false</code> inside the column header values.
</p>
</li>
<li>
Expand Down
23 changes: 18 additions & 5 deletions website/template/table/sorting.html
Expand Up @@ -7,7 +7,7 @@
<div class="example">
<div tasty-table bind-resource="resource">
<table class="table table-striped table-condensed">
<thead tasty-thead bind-not-sort-by="notSortBy"></thead>
<thead tasty-thead></thead>
<tbody>
<tr ng-repeat="row in rows">
<td>{{ row.name }}</td>
Expand Down Expand Up @@ -44,10 +44,23 @@
<pre><code data-language="javascript">$scope.notSortBy = ['sf-location'];

$scope.resource = {
"header": [
{ "key": "name", "name": "Name", "style": {"width": "50%"} },
{ "key": "star", "name": "Star", "style": {"width": "15%"} },
{ "key": "sf-location", "name": "SF Location", "style": {"width": "35%"} }
"header": [{
key: "name",
name: "Name",
style: { width: "50%" }
},
{
key: "sf-location",
name: "SF Location",
style: { width: "35%" },
sortable: false
},
{
key: "star",
name: "Star",
style: { width: "15%"},
class: ['text-right']
}
],
"rows": [
{ "name": "Ritual Coffee Roasters", "star": "★★★★★", "sf-location": "Hayes Valley"},
Expand Down

0 comments on commit 91452ed

Please sign in to comment.