-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#233 filterWithSelect doesn't work on boolean fields
- Loading branch information
onechiporenko
committed
Jul 20, 2017
1 parent
7e8d567
commit 192b57d
Showing
7 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/dummy/app/controllers/examples/filtering-select-box-bool.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Ember from 'ember'; | ||
import generateContent from '../../utils/c'; | ||
|
||
const {A} = Ember; | ||
|
||
export default Ember.Controller.extend({ | ||
|
||
title: 'Filtering with select-box (by boolean values)', | ||
model: generateContent(10), | ||
columns: A([ | ||
{ | ||
propertyName: 'id', | ||
title: 'ID' | ||
}, | ||
{ | ||
propertyName: 'firstName', | ||
title: 'First Name' | ||
}, | ||
{ | ||
propertyName: 'lastName', | ||
title: 'Last Name' | ||
}, | ||
{ | ||
propertyName: 'city', | ||
title: 'City' | ||
}, | ||
{ | ||
propertyName: 'rand', | ||
filterWithSelect: true | ||
} | ||
]) | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/dummy/app/templates/examples/filtering-select-box-bool.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h4>{{title}}</h4> | ||
</div> | ||
<div class="col-md-8"> | ||
{{models-table data=model columns=columns}} | ||
</div> | ||
<div class="col-md-4"> | ||
<p>Component usage:</p> | ||
<pre><code class="handlebars">{{models-table | ||
data=model | ||
columns=columns}}</code></pre> | ||
|
||
<p><code>columns</code>:</p> | ||
<pre><code class="javascript">{{to-string this 'columns'}}</code></pre> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters