var dv = GC.Spread.Sheets.DataValidation.createFormulaValidator(text);
// .createNumberValidator(false)
dv.showInputMessage(true);
dv.inputMessage("请正确填写单价(可保留6位小数)");
dv.inputTitle("提示");
dv.showErrorMessage(false);
// dv.errorMessage("错误");
dv.highlightStyle({
type: GC.Spread.Sheets.DataValidation.HighlightType.icon,
color: "red",
position: GC.Spread.Sheets.DataValidation.HighlightPosition.outsideLeft
});
|
|