Check documentation for the latest version of dhtmlxSuite setValidator DHTMLX Docs

setValidator

Assigns a validator to the cell.

Parameters

  • $name - ('none', 'number', 'email', 'positive', 'not_empty') the validator name

Example

$cell = new SpreadSheetCell($res, "1","B1", $db_prefix);
$cell->setValidator('number');

See also: getValidator, getStyle

Back to top