Vue CardView - cardCover
Configures the card cover.
Type:
App.vue
- <template>
- <DxCardView ... >
- <DxCardCover
- image-expr="imgUrlExpr"
- alt-expr="imgAltExpr"
- aspect-ratio="3.5"
- max-height="200"
- />
- </DxCardView>
- </template>
- <script setup lang="ts">
- import DxCardView, { DxCardCover } from 'devextreme-vue/card-view';
- function imgUrlExpr(data: Employee): string {
- return data.imgUrl;
- }
- function imgAltExpr(data: Employee): string {
- return data.imgAlt;
- }
- </script>