Explorar el Código

types(handsontable): registerCellType增加validator参数

vian hace 4 años
padre
commit
9cd8a76a90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      handsontable/handsontable.d.ts

+ 1 - 1
handsontable/handsontable.d.ts

@@ -2334,7 +2334,7 @@ declare namespace Handsontable {
     time: cellTypes.Time;
 
     // 自定义添加
-    registerCellType:(name:string, type:{editor: any; renderer: Handsontable.renderers.Base})=> void
+    registerCellType:(name:string, type:{editor: any; renderer: Handsontable.renderers.Base; validator?: (value: any, callback: (valid: boolean) => void) => void;})=> void
   }
 
   interface Editors {