Skip to content

Commit 2a86f98

Browse files
committed
add form-header
1 parent dc8a81f commit 2a86f98

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

packages/example/src/views/ExampleView.vue

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,30 @@ const wrapperProps = computed(() => ({
693693
<vuetify-json-forms-wrapper
694694
v-if="appStore.useWebComponentView"
695695
v-bind="wrapperProps"
696-
></vuetify-json-forms-wrapper>
696+
>
697+
<v-row slot="form-header" justify="end" class="pr-4 mt-1">
698+
<v-col cols="auto">
699+
<v-tooltip bottom>
700+
<template v-slot:activator="{ props }">
701+
<WebComponentLogo
702+
v-bind="props"
703+
height="24"
704+
width="24"
705+
></WebComponentLogo>
706+
</template>
707+
<div class="text-center">
708+
<div class="font-weight-medium">
709+
WebComponent View
710+
</div>
711+
<div class="text-caption">
712+
Icon rendered via webcomponent slot<br />
713+
<em>(form-header)</em>
714+
</div>
715+
</div>
716+
</v-tooltip>
717+
</v-col>
718+
</v-row></vuetify-json-forms-wrapper
719+
>
697720
<resolved-json-forms
698721
v-else
699722
:state="state as JsonFormsProps"

0 commit comments

Comments
 (0)