SpreadJS Documentation > Sample Code > Sample Code for the Widget > Allowing Cell Overflow |
You can allow text to overflow into adjacent cells.
This example allows the text to overflow.
JavaScript |
Copy Code
|
---|---|
$(document).ready(function () { var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3}); var activeSheet = spread.getActiveSheet(); // Overflow display is enabled. activeSheet.allowCellOverflow(true); activeSheet.getCell(1, 3).value("Any characters pushed outside the cell width are displayed as overflows."); }); |