-
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.
- Loading branch information
wouter-adriaens
committed
Jan 11, 2024
1 parent
48af99b
commit 88a0ab0
Showing
2 changed files
with
33 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<template> | ||
<div class="ag-overlay-loading-center"> | ||
<font-awesome-icon :icon="['fas', 'circle-exclamation']" /> | ||
{{ props.params.noRowsMessage }} | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; | ||
const props = defineProps<{ params: { noRowsMessage: string } }>(); | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import NoRowsOverlay from '@components/dumb/NoRowsOverlay.vue'; | ||
import type { Meta, StoryObj } from '@storybook/vue3'; | ||
|
||
const meta: Meta<typeof NoRowsOverlay> = { | ||
title: 'Dumb components/NoRowsOverlay', | ||
component: NoRowsOverlay, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
params: { control: 'object' }, | ||
}, | ||
args: { | ||
params: { | ||
noRowsMessage: 'No rows available', | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof NoRowsOverlay>; | ||
|
||
export const Default: Story = {}; |