enso/app/gui2/stories/CircularMenu.story.vue
somebody1234 f2651d58e4
[gui2] Component demos (#7945)
- Closes #7916

# Important Notes
None
2023-10-29 19:02:07 +00:00

39 lines
1.3 KiB
Vue

<script setup lang="ts">
import { logEvent } from 'histoire/client'
import { ref } from 'vue'
import CircularMenu from '@/components/CircularMenu.vue'
const isAutoEvaluationDisabled = ref(false)
const isDocsVisible = ref(false)
const isVisualizationVisible = ref(false)
</script>
<template>
<Story
title="Circular Menu"
group="graph"
:layout="{ type: 'grid', width: 200 }"
autoPropsDisabled
>
<div style="height: 76px">
<div style="position: absolute; left: 32px">
<CircularMenu
v-model:is-auto-evaluation-disabled="isAutoEvaluationDisabled"
v-model:is-docs-visible="isDocsVisible"
v-model:is-visualization-visible="isVisualizationVisible"
@update:isAutoEvaluationDisabled="logEvent('update:isAutoEvaluationDisabled', [$event])"
@update:isDocsVisible="logEvent('update:isDocsVisible', [$event])"
@update:isVisualizationVisible="logEvent('update:isVisualizationVisible', [$event])"
/>
</div>
</div>
<template #controls>
<HstCheckbox v-model="isAutoEvaluationDisabled" title="isAutoEvaluationDisabled" />
<HstCheckbox v-model="isDocsVisible" title="isDocsVisible" />
<HstCheckbox v-model="isVisualizationVisible" title="isVisualizationVisible" />
</template>
</Story>
</template>