Angular CardView - cardCover
Configures the card cover.
Type:
app.component.html
app.component.ts
- <dx-card-view ... >
- <dxo-card-view-card-cover
- imageExpr="imgUrlExpr"
- altExpr="imgAltExpr"
- aspectRatio="3.5"
- maxHeight="200"
- ></dxo-card-view-card-cover>
- </dx-card-view>
- // ...
- export class AppComponent {
- imgUrlExpr(data: Employee): string {
- return data.imgUrl;
- }
- imgAltExpr(data: Employee): string {
- return data.imgAlt;
- }
- }