2022-02-11 14:11:16 +00:00
|
|
|
<@disclosure.Details as |details|>
|
2022-02-25 10:01:08 +00:00
|
|
|
<PagedCollection
|
|
|
|
@items={{or @items (array)}}
|
|
|
|
as |pager|>
|
|
|
|
<div
|
|
|
|
{{on-outside 'click' @disclosure.close}}
|
|
|
|
{{did-insert pager.viewport}}
|
|
|
|
{{on-resize pager.resize}}
|
|
|
|
{{css-prop '--paged-row-height' returns=pager.rowHeight}}
|
|
|
|
{{css-prop 'max-height' returns=pager.maxHeight}}
|
|
|
|
class={{class-map
|
|
|
|
(array 'paged-collection-scroll' (contains pager.type (array 'virtual-scroll' 'native-scroll')))
|
|
|
|
}}
|
|
|
|
...attributes
|
|
|
|
>
|
|
|
|
{{yield (hash
|
|
|
|
Menu=(component 'menu'
|
|
|
|
disclosure=@disclosure
|
|
|
|
pager=pager
|
|
|
|
)
|
|
|
|
)}}
|
|
|
|
</div>
|
|
|
|
</PagedCollection>
|
2022-02-11 14:11:16 +00:00
|
|
|
</@disclosure.Details>
|
|
|
|
|