Image

cf-image

Image component consists of two parts:

  • image;

  • label.

Using

app.html

<h3>{{ title0 }}</h3>
<cf-image></cf-image>
<h3>{{ title1 }}</h3>
<cf-image [properties]="myImage1" [styling]="imageStyling1"></cf-image>
<h3>{{ title2 }}</h3>
<cf-image [properties]="myImage2" [styling]="imageStyling2"></cf-image>
<h3>{{ title3 }}</h3>
<cf-image [properties]="myImage3" [styling]="imageStyling3"></cf-image>
<h3>{{ title4 }}</h3>
<cf-image [properties]="myImage4" [styling]="imageStyling2"></cf-image>
<h3>{{ title5 }}</h3>
<cf-image [properties]="myImage5" [styling]="imageStyling3" [notification]="myNotifications"></cf-image>
<cf-button md-raised-button [properties]="sender" (click)="sendMessage()"></cf-button>

app.ts

app.scss

Image input properties

Attr

Type

Details

display

boolean

To show / hide component

label

string

It is label for image

labelPosition

string

It is label position. Default: bottom. Can be: top, bottom, right, left.

url

string

It is image url

Image styling properties

Attr

Type

Details

container

StylingModel

Styling properties for image container

label

StylingModel

Styling for image label

image

StylingModel

Styling for image itself

Last updated