3
3
4
4
<div class =" au-c-data-table__actions au-c-data-table__actions--top" >
5
5
{{ #if this.enableSearch }}
6
- {{ au-data-table-text-search filter =filter auto =autoSearch }}
6
+ <AuDataTableTextSearch
7
+ @filter ={{ this.filter }}
8
+ @auto ={{ this.autoSearch }}
9
+ />
7
10
{{ /if }}
8
11
{{ yield
9
12
(hash menu = (component " au-data-table-menu" data-table =this ))
19
22
noDataMessage =this.noDataMessage
20
23
enableSelection =this.enableSelection
21
24
enableLineNumbers =this.enableLineNumbers
22
- onClickRow =( optional this.onClickRow )
25
+ onClickRow =this.onClickRow
23
26
data-table =this
24
27
)
25
28
)
28
31
{{ else }}
29
32
{{ #if this.enableSearch }}
30
33
<div class =" au-c-data-table__actions au-c-data-table__actions--top" >
31
- {{ au-data-table-text-search filter =filter auto =autoSearch }}
34
+ <AuDataTableTextSearch
35
+ @filter ={{ this.filter }}
36
+ @auto ={{ this.autoSearch }}
37
+ />
32
38
</div >
33
39
{{ /if }}
34
- {{ component
35
- " au-data-table-content"
36
- content =this.content
37
- noDataMessage =this.noDataMessage
38
- enableSelection =this.enableSelection
39
- enableLineNumbers =this.enableLineNumbers
40
- onClickRow = (optional this.onClickRow )
41
- data-table =this
42
- }}
40
+ <AuDataTableContent
41
+ @content ={{ this.content }}
42
+ @noDataMessage ={{ this.noDataMessage }}
43
+ @enableSelection ={{ this.enableSelection }}
44
+ @enableLineNumbers ={{ this.enableLineNumbers }}
45
+ @onClickRow ={{ this.onClickRow }}
46
+ @data-table ={{ this }}
47
+ />
43
48
{{ /if }}
44
49
45
50
{{ #if this.showPagination }}
46
51
<div class =" au-c-data-table__actions au-c-data-table__actions--bottom" >
47
- {{ au-data-table-number-pagination
48
- page =this.page
49
- size =this.size
50
- nbOfItems =this.content.length
51
- sizeOptions =this.sizeOptions
52
- total =this.content.meta.count
53
- links =this.content.meta.pagination
54
- }}
52
+ < AuDataTableNumberPagination
53
+ @ page ={{ this.page }}
54
+ @ size ={{ this.size }}
55
+ @ nbOfItems ={{ this.content.length }}
56
+ @ sizeOptions ={{ this.sizeOptions }}
57
+ @ total ={{ this.content.meta.count }}
58
+ @ links ={{ this.content.meta.pagination }}
59
+ />
55
60
</div >
56
61
{{ /if }}
57
62
</div >
0 commit comments