Skip to content

DraggableItemFloat

Package
Draggable
Category
Description
Draggable Item Float

Props

PropDescriptionTypeRequiredDefault Value
titlestringfasle--
disabledExpandbooleanfasle--
disabledHeaderbooleanfasle--
disabledClosebooleanfasle--
disabledOrderbooleanfasle--
containerIdstringfasle--
showbooleanfaslefalse
expandbooleanfaslefalse
widthnumberfasle200
heightnumberfasle200
topnumberfasle--
leftnumberfasle--
bottomnumberfasle--
rightnumberfasle--
maxHeightnumberfasle500
headerLocationtop or bottom`stringfasle'top'

Events

NameDescription
update:expand(value:boolean) => void
close() => void
update:show(value:boolean) => void

Slots

NameDescription
default
title
extra-btn

Usage

vue
<script setup lang="ts">
import { DraggableContainer, DraggableItemFloat } from '@hungpvq/vue-draggable';
</script>

<template>
  <DraggableContainer>
    <DraggableItemFloat title="Title" show right :right="10" :bottom="10" :width="400">
      <div style="height: 100vh"></div>
    </DraggableItemFloat>
  </DraggableContainer>
</template>