diff --git a/app/components/royal-table.hbs b/app/components/royal-table.hbs index 43c9bb5..92a8cca 100644 --- a/app/components/royal-table.hbs +++ b/app/components/royal-table.hbs @@ -1,33 +1,35 @@ - - {{#if @caption}} - - {{/if}} - - - {{yield - (component - 'royal-table/column' - place='head' - onClickHead=@onClickHead - onSort=@onSort - sortingProp=@sortingProp - sortingIconComponent=@sortingIconComponent - parent=this - ) - }} - - - - {{#each @data as |item index|}} +
+
- {{@caption}} -
+ {{#if @caption}} + + {{/if}} + {{yield - (component 'royal-table/column' place='body' data=item parent=this) - item - index + (component + 'royal-table/column' + place='head' + onClickHead=@onClickHead + onSort=@onSort + sortingProp=@sortingProp + sortingIconComponent=@sortingIconComponent + parent=this + ) }} - {{/each}} - -
+ {{@caption}} +
+ + + {{#each @data as |item index|}} + + {{yield + (component 'royal-table/column' place='body' data=item parent=this) + item + index + }} + + {{/each}} + + +