Description

(>= 1.3.0) Change a value in a cell

Usage

Parameters

  • col {Integer}

    Column

  • row {Integer}

    Row

  • prop {Object}

    Value

Returns

Class.Hit

Example

In ready method

var grid = Class.New("Grid", [2, 2]);
grid.setPropertyCell(
    [
        [0, 0], 
        [1, 0]
    ]
);
grid.setPropertyByCell(1, 0, 0); // grid is [[0, 0], [0, 0]] now

Returns undefined if column or row doesn't exist

Discussion