Class IgxCardMediaDirective

IgxCardMedia is container for the card media section. Use it to wrap images and videos.

Constructors

Properties

Constructors

Properties

height: string = 'auto'

Sets the height style property of the media container. If not provided it will be set to auto.

Example

<igx-card-media height="50%"></igx-card-media>
role: string = 'img'

Sets the role attribute of the media container.

width: string = 'auto'

Sets the width and min-width style property of the media container. If not provided it will be set to auto.

Example

<igx-card-media width="300px"></igx-card-media>