编辑图标未显示在Ag-Grid中

问题描述

版本:

  • 角度:10.0.10

  • @ angular / cli 10.0.6

我使用以下命令安装引导程序

  • npm install @ coreui / angular --save
  • npm安装引导程序

查看代码:

app.module.ts

@NgModule({
     bootstrap: [AppComponent]
      })

registraion.component.cs

import { Component,OnInit  } from '@angular/core';
import { BackendserviceService } from '../backendservice.service';

@Component({
  selector: 'app-registration',templateUrl: './registration.component.html',styleUrls: ['./registration.component.css']
})

export class RegistrationComponent implements OnInit {

   columnDefs = [
    { headerName: 'empid',field: 'empid' },{ headerName: 'username',field: 'username' },{ headerName: 'empaddress',field: 'empaddress' },{ headerName: 'password',field: 'password' },{ headerName: 'country',field: 'country' },{
      headerName: 'Edit',template:
        '<span><i class="fa fa-edit" data-action-type="edit"></i></span>',}
  ];

当我点击编辑图标检查时

enter image description here

edit icon not appearing

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)