Check documentation for the latest version of dhtmlxSuite setLocked DHTMLX Docs

setLocked

Locks/unlocks the cell.

Parameters

  • $value - (boolean) the true value locks the cell, false - unlocks.

Example

$cell = new SpreadSheetCell($res, "1","B1", $db_prefix);
$cell->setLocked(true);

See also: lock, unlock, isLocked

Details

Note,

$cell->setLocked(true); 
//is egual to
$cell->lock();
$cell->setLocked(false); 
//is equal to 
$cell->unlock();
Back to top