作成日: 2019/12/04 最終更新日: 2020/02/05
文書種別
不具合
状況
修正済み
詳細
FlexGridのitemValidatorにて、APIリファレンスのサンプルではnullを返せる記載となっているが、TypeScriptでは以下の定義となっているため、IItemValidatorの戻り値にnullが使用できない。
■wijmo.grid.d.ts
----------------------------------------------------
/**
* Represents a method returns error strings associated with grid cells.
*/
export interface IItemValidator {
/**
* @param row Row index of the cell being tested.
* @param col Column index of the cell being tested.
* @returns A string describing the error, or null to indicate the cell contains no errors.
*/
(row: number, col: number): string;
}
----------------------------------------------------
■wijmo.grid.d.ts
----------------------------------------------------
/**
* Represents a method returns error strings associated with grid cells.
*/
export interface IItemValidator {
/**
* @param row Row index of the cell being tested.
* @param col Column index of the cell being tested.
* @returns A string describing the error, or null to indicate the cell contains no errors.
*/
(row: number, col: number): string;
}
----------------------------------------------------
回避方法
この問題はバージョン5.20193.646で修正されました。
旧文書番号
84695