SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.erasable  property

If set as true, the user can erase the values of the selected area by Delete key. 

It will set the value of cells of being erased as undefined. You can also erase the values by calling GridBase.eraseSelection. eraseSelection can be Undone. 

Defaults to false.

Getter
function erasable(): Boolean
Setter
function setErasable(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            erasable: true,
            deletable: true
        }
    });
Code -2
    grid.setEditOptions({
        deletable: true,
        erasable: true
    });
Code -3
    grid.editOptions().setErasable(true);
See Also
GridBase.eraseSelection
deletable
insertable
appendable
updatable
Examples
Undo & Redo