mirror of https://github.com/status-im/consul.git
25 lines
680 B
Handlebars
25 lines
680 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<ul
|
|
role='menu'
|
|
style={{{style-map
|
|
(array 'height' (if (and @pager (not-eq @pager.type 'native-scroll')) @pager.totalHeight) 'px')
|
|
(array
|
|
'--paged-start' (if (and @pager (not-eq @pager.type 'native-scroll')) @pager.startHeight) 'px'
|
|
)
|
|
}}}
|
|
{{did-insert (optional @pager.pane)}}
|
|
{{aria-menu onclose=(or @onclose @disclosure.close) openEvent=(or @event @disclosure.event)}}
|
|
>
|
|
{{yield
|
|
(hash
|
|
Action=(component 'menu/action' disclosure=@disclosure)
|
|
Item=(component 'menu/item')
|
|
Separator=(component 'menu/separator')
|
|
items=@pager.items
|
|
)
|
|
}}
|
|
</ul> |