알쓸전컴(알아두면 쓸모있는 전자 컴퓨터)

Vue.Draggable LIst Drag UI 본문

Web /Vue js tip

Vue.Draggable LIst Drag UI

백곳 2018. 11. 28. 23:32

Vue.Draggable LIst Drag UI


이분야 에서는


/Sortable 


가 대세인것 같아 각종 wrap 들 API가 많다.

그중에 vue에 맞춘 wrap 이 있다.

아래가 데모 이다 

사용해본 결과 잘된다 ..


https://github.com/SortableJS/Vue.Draggable#readme


그리고 똑같은


https://sagalbot.github.io/vue-sortable/


wrap가 있는데 현제 사용이 안되니 낚이지 말자


demo gif




https://david-desmaisons.github.io/draggable-example/


Typical use:

<draggable v-model="myArray" :options="{group:'people'}" @start="drag=true" @end="drag=false">
   <div v-for="element in myArray" :key="element.id">{{element.name}}</div>
</draggable>

.vue file:

  import draggable from 'vuedraggable'
  ...
  export default {
        components: {
            draggable,
        },
  ...


'Web > Vue js tip' 카테고리의 다른 글

vue Template 동적 변환  (1) 2018.12.03
WYSIWYG Vue js Eidtor 추천  (0) 2018.11.29
vue cli 3.0 webcomponent 만들기  (0) 2018.10.23
vue js chart 라이브러리 소개 apexcharts  (0) 2018.10.12
filepond with spring vue js 파일 업로드  (0) 2018.10.04
Comments