gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

acceptWidgets between nested grids

Open Coopyrightdmin opened this issue 10 years ago • 6 comments

Hi,

I am using the acceptWidgets: '.grid-stack-item'option but I am not able to drag and drop from nested grids to others. Any suggestion?

<div class="row">
  <div class="grid-stack grid-stack-6">
    <div class="grid-stack-item">
       <div class="container grid-stack-item-content">
         <div class="row"> 
           <div class="grid-stack grid-stack-1"><!-- From Here! -->
             <div class="grid-stack-item">
               <div class="container grid-stack-item-content">Content</div>
             </div>
           </div>
        </div>
      </div>
      <div class="grid-stack-item">
        <div class="container grid-stack-item-content">
          <div class="row"> 
            <div class="grid-stack grid-stack-1"><!--To There! -->
          </div>
        </div>
      </div>
    </div>
  </div>

nested containers

Coopyrightdmin avatar Mar 04 '16 10:03 Coopyrightdmin

I cannot speak for @troolee, who implemented this very cool feature, but I haven't personally tested doing this with nested grids. I appreciate the HTML you've included, but could you provide a jsfiddle for us to take a look at? I'm almost certain that it's a "bug," but it wouldn't hurt to verify that there's nothing amiss in the code you've got prepped!

-d

radiolips avatar Mar 07 '16 13:03 radiolips

Sorry for the delay, here a sample. https://jsfiddle.net/vbqn5tL8/1/

Coopyrightdmin avatar May 27 '16 15:05 Coopyrightdmin

Hi there,

Any news about this enhancement?

Thank you.

filipevb avatar Sep 21 '18 11:09 filipevb

Hi, I still see this issue in the gridstack version 0.4.0. Any updates?

mishrarajesh avatar Sep 24 '18 07:09 mishrarajesh

I think even dragging from one grid to another (non nested) is also busted (#834 using demo pages) but nested have other issues as well (like sizing content correctly, which I also filed). Those 2 issues are preventing me from using nested grids.

adumesny avatar Sep 24 '18 15:09 adumesny

fix is in the next release ! the latest nested.html shows how to get it working between 2 nested grids. Note: there is still a clipping of child during drag I need to figure out later...

adumesny avatar Dec 22 '19 01:12 adumesny