排在AG-格格式化 [英] Row formatting in ag-Grid
问题描述
我们需要有条件地使行文本加粗。目前,它的工作只是单个细胞,但我们需要将文本加粗上的所有列的单元格。运用格式isBold列后一定要隐藏/删除。此列仅用于格式化。如何申请TEXT-INDENT:10px的;第一列其中isBold列包含真正的价值?任何可能性,以实现这一目标?这里是plunker
http://plnkr.co/edit/YVGpi2FkwzCl3R1K8fwo?p=$p$pview一>
We need to conditionally make a row text as Bold. Currently its working on only single cell but we need to apply text bold on all columns cells. After applying the formatting 'isBold' column must be hide/remove. This column is used only for formatting. How to apply text-indent: 10px; of first column where the isBold column contains true value? Any possibility to achieve this?here is plunker
http://plnkr.co/edit/YVGpi2FkwzCl3R1K8fwo?p=preview
推荐答案
这plunker无效了。
This plunker is not valid any more.
我相信你使用 cellStyle
回调 columnDefs
来使字体加粗。
I believe that you use cellStyle
callback of the columnDefs
to make the font bold.
如果您需要做的是为全行,创建一个共同的回调函数,并在 cellStyle
所有使用 columnDefs
。
If you need to do it for the whole row, create a common callback function and use it in cellStyle
of all columnDefs
.
有没有一个单一的命令来更改行的风格。
There is no single command to change the style of a row.
这篇关于排在AG-格格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!