question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possibility to render using slots

See original GitHub issue

Currently the library wraps elements with div tags (Draggable & Container). Could this be changed so that it doesn’t render any html and gives developer a scoped slot instead. If I understood the code correctly, it’s not possibly to use this with table rows?

Simirlarly as here: https://github.com/adamwathan/vue-shopify-sortable-demo

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
ispalcommented, Apr 24, 2018

I’ll see if I have time to help you with this in a form of pull request

3reactions
peterb-lcommented, Jan 22, 2020

Excellent library - really neat! Would be amazing if the Container component could act as a transition-group. Understandably the tag has to be an html tag: tag=“transition-group” gives “TypeError: n.removeChild is not a function” on render.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using templates and slots - Web Components | MDN
This article explains how you can use the and elements to create a flexible template that can then be used to populate the...
Read more >
Option to render in next slot for each subsequent render
This is basic functionality in Cinema 4D. Every time you hit render you get a new render layer. There are no slots at...
Read more >
Shadow DOM slots, composition
Then the browser performs “composition”: it takes elements from the light DOM and renders them in corresponding slots of the shadow DOM.
Read more >
Vue render function: include slots to child component without ...
I can't use the scopedSlots option since this slot (for example) has no slot props, so the function is never called. return h(...
Read more >
Slots - Vue Test Utils
VTU provides the slots mounting option for this purpose: ... You can also pass a render function, an object with template or even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found