Export PopoutCommunity Asset

Open in new window
Open in new window
View RTL
<script lang="ts" setup>
import type { FileFormatType } from '~/models/fileFormat.js'

function handleExport(filename: string, format: FileFormatType) {
  alert(`Exporting ${filename} in ${format.toUpperCase()} format`)
}
</script>

<template>
  <div class="n-stack n-gap-m">
    <p class="n-typescale-s">
      This example demonstrates the basic usage of the ExportPopout component.
      It shows how to configure available export formats and handle export
      events.
    </p>

    <div>
      <nord-button
        id="export-button"
        aria-controls="export-popout"
        aria-haspopup="true"
      >
        Export
        <nord-icon slot="end" name="interface-download" />
      </nord-button>
    </div>
    <UiExportPopout id="export-popout" @export="handleExport" />
  </div>
</template>

Integration

This community asset is currently only available to use in the New Frontend for Provet Cloud.


Troubleshooting

If you experience any issues while using this community asset, please ask for support in the #vet-frontend Slack channel.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.

 
Edit page
Choose therapy brandChoose veterinary brandAbout Nord Design SystemGet support