Class IgxCardMediaDirective

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

Hierarchy

Hierarchy

  • IgxCardMediaDirective

Constructors

Properties

Constructors

Properties

height: string = 'auto'

An

Input

property that 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'

An

Input

property that sets the role attribute of the media container.

width: string = 'auto'

An

Input

property that 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>