SpreadJS Documentation > Sample Code > Sample Code for the Widget > Setting Edit Mode Always |
You can set the cell to always be in edit mode.
This example puts the cell in edit mode.
JavaScript |
Copy Code
|
---|---|
$(document).ready(function () { var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3}); //Set to be always in input mode. spread.bind(GcSpread.Sheets.Events.EnterCell, function (event, data) { var sheet = data.sheet; sheet.startEdit(false); }); }); |