Remove ordered-filtered-table component idea that has not produced a working example
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
import Ember from 'ember'
|
|
||||||
import layout from '../templates/components/ordered-filtered-table'
|
|
||||||
|
|
||||||
export default Ember.Component.extend
|
|
||||||
layout: layout
|
|
||||||
tagName: 'table'
|
|
||||||
classNames: ['ui', 'compact', 'table']
|
|
||||||
test_name: 'Oooo'
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
{{#each properties as |p|}}
|
|
||||||
{{p.header}}
|
|
||||||
{{/each}}
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
{{#each properties as |p|}}
|
|
||||||
{{p.filter}}
|
|
||||||
{{/each}}
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each content as |record|}}
|
|
||||||
<tr>
|
|
||||||
{{#each properties as |p|}}
|
|
||||||
{{p.display record=record}}
|
|
||||||
{{/each}}
|
|
||||||
</tr>
|
|
||||||
{{/each}}
|
|
||||||
</tbody>
|
|
||||||
{{yield (hash
|
|
||||||
property=(component "ordered-filtered-table/property" table=self)
|
|
||||||
)}}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
= yield
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export { default } from 'ember-cli-dunlop/components/ordered-filtered-table';
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export { default } from 'ember-cli-dunlop/components/ordered-filtered-table/property';
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { test, moduleForComponent } from 'ember-qunit'
|
|
||||||
import hbs from 'htmlbars-inline-precompile'
|
|
||||||
|
|
||||||
moduleForComponent 'ordered-filtered-table', 'Integration | Component | ordered filtered table', {
|
|
||||||
integration: true
|
|
||||||
}
|
|
||||||
|
|
||||||
test 'it renders', (assert) ->
|
|
||||||
assert.expect 2
|
|
||||||
|
|
||||||
# Set any properties with @set 'myProperty', 'value'
|
|
||||||
# Handle any actions with @on 'myAction', (val) ->
|
|
||||||
|
|
||||||
@render hbs """{{ordered-filtered-table}}"""
|
|
||||||
|
|
||||||
assert.equal @$().text().trim(), ''
|
|
||||||
|
|
||||||
# Template block usage:
|
|
||||||
@render hbs """
|
|
||||||
{{#ordered-filtered-table}}
|
|
||||||
template block text
|
|
||||||
{{/ordered-filtered-table}}
|
|
||||||
"""
|
|
||||||
|
|
||||||
assert.equal @$().text().trim(), 'template block text'
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { test, moduleForComponent } from 'ember-qunit'
|
|
||||||
import hbs from 'htmlbars-inline-precompile'
|
|
||||||
|
|
||||||
moduleForComponent 'ordered-filtered-table/property', 'Integration | Component | ordered filtered table/property', {
|
|
||||||
integration: true
|
|
||||||
}
|
|
||||||
|
|
||||||
test 'it renders', (assert) ->
|
|
||||||
assert.expect 2
|
|
||||||
|
|
||||||
# Set any properties with @set 'myProperty', 'value'
|
|
||||||
# Handle any actions with @on 'myAction', (val) ->
|
|
||||||
|
|
||||||
@render hbs """{{ordered-filtered-table/property}}"""
|
|
||||||
|
|
||||||
assert.equal @$().text().trim(), ''
|
|
||||||
|
|
||||||
# Template block usage:
|
|
||||||
@render hbs """
|
|
||||||
{{#ordered-filtered-table/property}}
|
|
||||||
template block text
|
|
||||||
{{/ordered-filtered-table/property}}
|
|
||||||
"""
|
|
||||||
|
|
||||||
assert.equal @$().text().trim(), 'template block text'
|
|
||||||
Reference in New Issue
Block a user