Hi all,
I try to add some code to wrap text for ALL columns of an Interacitve Grid without being forced to put some code to every column (Column => Advanced => Javascript Code).
I put the following code to IG => Attributes => Advanced => Javascript Code:
function(config) {
var colName;
var gridColumns = config.columns;
for (var i = 0; i < gridColumns.length;i++) {
col_name = gridColumns[i].name;
gridColumns[i].defaultGridColumnOptions={cellTemplate:'<div class="wrap-cell">&'+col_name+'.</div>'}
}
return config;
}
I added these two classes:
#static_id .a-GV-cell {
height: 80px;
}
.wrap-cell {
max-height: 64px;
white-space: pre-line;
overflow: hidden;
}
It works fine, but the hight of columns APEX$ROW_ACTION and APEX$ROW_SELECTOR is not adapted.
Has anybody a solution?
Kind regards,
Kirsten
(I use APEX 5.1.4.00.08)