Skip to content

Commit

Permalink
chore: adjust Docu.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-demos committed Sep 1, 2023
1 parent a31bdea commit 089a7a4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/components/DpDraggable/DpDraggable.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ Use the Draggable component to change the order of items within a list.

```html
<dp-draggable
:opts="draggableOptions">
<dp-admin-layer-list-item
v-for="(item, idx) in childElements"
:key="item.id"
:element="{ id: item.id, type: item.type }"
:sorting-type="sortingType"
:layer-type="layerType"
:parent-order-position="layer.attributes[sortingType]"
:index="idx" />
v-model="currentList"
:opts="draggableOptions">
<div class="o-sortablelist__item u-pv-0_5 u-pl-0_5 border--top">
<p>Content 1</p>
</div>
<div class="o-sortablelist__item u-pv-0_5 u-pl-0_5 border--top">
<p>Content 2</p>
</div>
</dp-draggable>
```

0 comments on commit 089a7a4

Please sign in to comment.