Skip to main content

beforeCollapse

fires before a cell is collapsed

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

Parameters:

id: string - the id of a cell

Returns:

Return false to prevent a cell from being collapsed; otherwise, true.

Example

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

Related sample: Layout. Events

Change log:

added in v6.2