ccdb-web/app/templates/components/ccdb-table.hbs
2017-11-19 17:15:47 -07:00

14 lines
535 B
Handlebars

{{#if hasBlock}}
{{yield (hash
grid=(component 'light-table' table=table onRowClicked=(action (optional onRowClicked)))
pagination=(component 'ccdb-pagination' model=model changePage=(action (optional changePage)))
)}}
{{else}}
{{ccdb-pagination model=model changePage=(action (optional changePage))}}
<div class="table-responsive">
{{#light-table table tableClassNames="table table-striped" as |t|}}
{{t.head}}
{{t.body onRowClick=(action (optional onRowClick))}}
{{/light-table}}
</div>
{{/if}}