Parcourir la source

types(handsontable): registerCellType增加validator参数

vian il y a 4 ans
Parent
commit
9cd8a76a90
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {