-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcontent.hbs
40 lines (40 loc) · 1.29 KB
/
content.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{{! template-lint-disable table-groups }}
<div class="au-c-data-table__wrapper">
<table class="au-c-data-table__table {{this.tableClass}}" ...attributes>
{{#if (has-block)}}
{{yield
(hash
header=(component
"au-data-table-content-header"
enableSelection=this.enableSelection
enableLineNumbers=this.enableLineNumbers
data-table=this.data-table
)
body=(component
"au-data-table-content-body"
content=this.content
enableSelection=this.enableSelection
enableLineNumbers=this.enableLineNumbers
noDataMessage=this.noDataMessage
onClickRow=this.onClickRow
data-table=this.data-table
)
)
}}
{{else}}
<AuDataTableContentHeader
@enableSelection={{this.enableSelection}}
@enableLineNumbers={{this.enableLineNumbers}}
@data-table={{this.data-table}}
/>
<AuDataTableContentBody
@content={{this.content}}
@enableSelection={{this.enableSelection}}
@enableLineNumbers={{this.enableLineNumbers}}
@noDataMessage={{this.noDataMessage}}
@onClickRow={{this.onClickRow}}
@data-table={{this.data-table}}
/>
{{/if}}
</table>
</div>