Check documentation for the latest version of dhtmlxSuite setCollapsedText DHTMLX Docs

setCollapsedText

sets header text for collapsed cell

void setCollapsedText(string text);
textstringtext for collapsed cell (html allowed)

Example

myLayout.cells(id).setCollapsedText("Collapsed cell");
// or
myLayout.cells(id).setCollapsedText("<span style='color:red;'>Important!</span>");

Details

You can specify the 2nd parameter as an image. It can be used for correct representation when you deal with vertical cells.

var collText = dhxLayout.cells("a").setCollapsedText("<img src='../common/labels/1.gif' 
width='18px' height='81px' border='0'>");
Change log

added in 4.0

Back to top