Set Position relative to parent?
Opened this issue · 0 comments
datWeazel commented
I'd like to automatically position the window relative to the parent.
Let's say I got the following component called WinboxText.vue:
<template>
<WinBox :options="options">
<slot />
</WinBox>
</template>
<script setup lang="ts">
// @ts-ignore
import type { Params } from 'winbox';
// WinBox options
const options: Params = {
title: 'My Window',
class: 'modern',
};
</script>
If I then use my component in a page like this:
<template>
<WinboxTest class="test"> Hello World! </WinboxTest>
</template>
<script setup lang="ts"></script>
<style scoped lang="scss">
.test {
// Position Element on the right side of the screen
}
</style>
The Window is still in the top left corner of the screen.