pinafore/routes/_components/pseudoVirtualList/PseudoVirtualListItem.html

23 lines
547 B
HTML
Raw Normal View History

<div class="pseudo-virtual-list-item"
2018-01-31 05:02:07 +00:00
aria-hidden="{{hide}}"
pseudo-virtual-list-key="{{key}}"
style="height: {{hide ? `${height}px` : ''}};"
ref:node>
{{#if !hide}}
<:Component {component}
virtualProps="{{props}}"
virtualIndex="{{index}}"
virtualLength="{length}}"
/>
{{/if}}
</div>
<script>
export default {
oncreate() {
let intersectionObserver = this.get('intersectionObserver')
intersectionObserver.observe(this.refs.node)
}
}
</script>