Set column height equal to height of record in List
Pregunta
I have a SP list where one of the columns is multi-line I have therefore set the style of this specific column as "height":"auto"
which works perfectly for this column.
I then have other formatted columns which change color based on their values however the div is a fixed height. I want the height of the div to equal the height of the list item. I have tried using "height":"100%"
and "auto"
and neither work.
Is there a way I can reference the height of the list item or even reference the height of another column withing the list?
I am using JSON column formatting for this task and I do not have access to SharePoint Designer.
Solución
It is Not Possible using column formatting, you cannot access the CSS properties of other columns.
Using column formatting, You can only access the column values from the same list item/row like [$AnotherColumnFromSameRow]
.
Where AnotherColumnFromSameRow
is internal name another column from same list item/row.
Workaround:
You need to use the View Formatting and define the look and feel for the complete row on your own (Note that you will loose some of the default functionalities given by SharePoint).
References:
Otros consejos
You can create Custom Column by IFieldEditor
and