I have a problem to show simple button with icon.
I tried:
1) <input type="button" [contentType]="'imageonly'" [prefixIcon]="'e-icon e-delete'" ej-button />
2) <input type="button" contentType="imageonly" [prefixIcon]="e-icon e-delete" ej-button />
3) <input type="button" contentType="imageonly" prefixIcon="e-icon e-delete" ej-button />
Without success. Where am I wrong?
Regards,
Milos
<button type="button" [contentType]="imageonly" [prefixIcon]="deleteicon" ej-button ></button>
<button type="button" contentType="imageonly" [prefixIcon]="deleteicon" ej-button ></button>
<button type="button" contentType="imageonly" prefixIcon="e-icon e-delete" ej-button ></button>
|
import { Component, ViewEncapsulation} from '@angular/core';
@Component({
selector: 'ej-app',
templateUrl: './app.component.html',
})
export class AppComponent {
imageonly:any;
deleteicon:any;
constructor() {
this.imageonly="imageonly";
this.deleteicon="e-icon e-delete";
}
} |
Hi Berly,
Thanks, that solved my problem.
Regards,
Milos