Skip to main content

beforeRemove

fires before removing a cell

beforeRemove: (id: string) => boolean | void;

Parameters:

id: string - the id of a cell

Returns:

Return false to prevent removing of a cell; otherwise, true.

Example

layout.events.on("BeforeRemove", function(id){    // your logic here    return false;});

Related sample: Layout. Events

Change log:

added in v6.2