简体   繁体   English

如何防止SpreadJS中的工作表名称更改

[英]How to prevent sheet name change in SpreadJS

Is there a way to prevent user from changing a sheet's name in SpreadJS. 有没有一种方法可以防止用户在SpreadJS中更改工作表的名称。 Eg there is a way to prevent user from reordering sheets using 例如,有一种方法可以防止用户使用

spread.allowSheetReorder(false); spread.allowSheetReorder(false);

Is there a similar method for preventing sheet name change? 是否有类似的方法可以防止工作表名称更改?

You can prevent users from editing the sheet name by setting the tabEditable property of sheet to false. 通过将工作表的tabEditable属性设置为false,可以防止用户编辑工作表名称。 Here is the doc link: http://sphelp.grapecity.com/webhelp/SpreadJSWeb/webframe.html#tabstrip.html 这是文档链接: http : //sphelp.grapecity.com/webhelp/SpreadJSWeb/webframe.html#tabstrip.html

You can also check out the sample implementing it: http://spread.grapecity.com/Demos/JS/SpreadJSExplorerSample/?widget=MultipleSheets&sample=Tab%20strip%20setting 您还可以查看实现该示例的示例: http : //spread.grapecity.com/Demos/JS/SpreadJSExplorerSample/?widget=MultipleSheets& sample= Tab%20strip%20setting

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM