Hi, have a nice day. I want to customize the command but I can't find a list of icons for it. Can you help me?
|
[app.component.html]
<ejs-grid [dataSource]='data' allowPaging='true' [toolbar]="toolbar" [editSettings]='editSettings'
(commandClick)='commandClick($event)'>
<e-columns>
----
<e-column headerText='Manage Records' width='160' [commands]='commands'></e-column>
</e-columns>
</ejs-grid>
[app.component.ts]
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
encapsulation: ViewEncapsulation.None,
providers: [EditService, PageService, CommandColumnService]
})
export class AppComponent {
---
public commands: CommandModel[];
public ngOnInit(): void {
---
this.commands = [
{
buttonOption: {
content: 'Details',
iconCss: 'e-icons customicon',
cssClass: 'e-flat'
}
}
];
}
}
[app.component.css]
.customicon::before {
content: '\e267'; // bind the icon as you want
}
|
I did it. Thank you so much