Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Provide #before and #after slots for extra customization #405

Open
cmitz opened this issue Apr 4, 2023 · 0 comments
Open

Comments

@cmitz
Copy link

cmitz commented Apr 4, 2023

Describe the feature request

The documentation doesn't specify this, but in the source code using a #default slot is clearly supported. I think it would be great if that was documented.

Example

<VirtualList
  data-key="id"
  :data-sources="epcisEvents"
  :data-component="EmptyComponent"
  :keeps="6"
>
  <template #before>
    <span>Something</span>
  </template>

  <template #item="{ index, item }">
    <MyComponent
      :list-item="item"
      @custom-listener
    />
  </template>
</VirtualList>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant