0
設置dragable圖像我試圖讓一組圖片dragable使用dragula 下面是代碼:Dragula:在同一行
<div>
<label for="hy">There are plenty of events along the lifetime of a drag event. </label>
<div class="container" [dragula]="'second-bag'">
<div class="row">
<div class="col-lg-3">
<div class="instrument"><img src="./images/gittare.png"/></div>
</div>
<div class="col-lg-3">
<div class="instrument"><img src="./images/saxsophone.png"/></div>
</div>
<div class="col-lg-3">
<div class="instrument"><img src="./images/drum.png"/></div>
</div>
</div>
</div>
<!--div class="wrapper">
</div-->
-----------------
<div class="container" [dragula]="'second-bag'" style="width:800px;">
<div> Put it here to play</div>
</div>
</div>
我覺得<div [dragula]="'second-bag'">
裏面一切都應該是dragable。不幸的是,整行是可拖動的,我不能獨立拖動圖像。
我需要row
和col
設置圖像在同一行。