React CardView - cardCover
Configures the card cover.
Type:
App.ts
- import CardView, { CardCover } from 'devextreme-react/card-view';
- function imgUrlExpr(data: Employee): string {
- return data.imgUrl;
- }
- function imgAltExpr(data: Employee): string {
- return data.imgAlt;
- }
- function App() {
- return (
- <CardView ... >
- <CardCover
- imageExpr="imgUrlExpr"
- altExpr="imgAltExpr"
- aspectRatio="3.5"
- maxHeight="200"
- />
- </CardView>
- )
- }