Why ColumnConfiguration doest'n have attributesCallback? #1068
-
i'm trying to set the width of a column and looking insde the code i realize that the ColumnConfiguration doest'n have the attributesCallback to set the Width. |
Beta Was this translation helpful? Give feedback.
Answered by
lucassmacedo
Mar 1, 2023
Replies: 2 comments 3 replies
-
It's in the configure area. You can use the setTdAtrributes to do this. For example: $this->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) {
if ($column->getTitle() == 'Actions') {
return [
'default' => false,
'class' => 'w-12',
];
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lucassmacedo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks.