【问题标题】:AngularJs : style a column in Ag-gridAngularJs:在 Ag-grid 中设置列​​的样式
【发布时间】:2020-10-25 12:41:42
【问题描述】:

我想使用 AngularJs 为 ag-grid 中的列设置样式(我希望它看起来像超链接,甚至可能使用已访问/未访问的 colo(u)rs)。特定的风格并不重要;我只想知道如何设置列的样式。静态样式很好;我不需要动态样式。

我该怎么做?

【问题讨论】:

    标签: angularjs ag-grid


    【解决方案1】:
    columnDefs: [{ headerName: "Candidate", 
                   field: "candidate_name", 
                   sortable: true, 
                   cellStyle: function(params) {return {color: 'red'}}},
    

    我不确定如何在没有回调的情况下做到这一点,但我可以忍受这个。

    【讨论】:

      猜你喜欢
      • 2020-10-03
      • 2019-07-14
      • 2020-05-28
      • 2017-10-09
      • 2019-03-10
      • 2021-09-29
      • 2017-05-13
      • 2018-09-26
      • 2019-11-18
      相关资源
      最近更新 更多