-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#132 added props and api service to grid
- Loading branch information
1 parent
24029b0
commit e4e90dd
Showing
4 changed files
with
108 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
<template> | ||
<vl-modal :id="props.id" closable mod-large title="Actor toevoegen"> | ||
<oe-actor-widget-grid></oe-actor-widget-grid> | ||
<!--<vl-modal :id="props.id" closable mod-large title="Actor toevoegen">--> | ||
<div class="content"> | ||
<oe-actor-widget-grid :service="actorService"></oe-actor-widget-grid> | ||
<div class="vl-u-flex vl-u-flex-align-center"> | ||
<vl-button class="vl-u-spacer-right--small" mod-secondary @click="close">Sluiten</vl-button> | ||
</div> | ||
</vl-modal> | ||
</div> | ||
<!--</vl-modal>--> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { VlButton, VlModal } from '@govflanders/vl-ui-design-system-vue3'; | ||
import OeActorWidgetGrid from '@components/smart/OeActorWidgetGrid.vue'; | ||
import { ActorService } from '@services/actor.service'; | ||
const props = defineProps<{ id: string }>(); | ||
interface IOeActorWidgetProps { | ||
id: string; | ||
api: string; | ||
getSsoToken: () => Promise<string>; | ||
} | ||
const props = withDefaults(defineProps<IOeActorWidgetProps>(), { | ||
id: '', | ||
api: '', | ||
getSsoToken: undefined, | ||
}); | ||
const emit = defineEmits<{ | ||
close: [void]; | ||
}>(); | ||
const actorService = new ActorService(props.api, props.getSsoToken); | ||
const close = () => { | ||
emit('close'); | ||
}; | ||
</script> | ||
|
||
<style lang="scss"></style> | ||
<style lang="scss" scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters