Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const updateTabScreenSize = (tabid, screenSize) => {
let config = state.model.getNodeById(tabid).getConfig();
state.model.doAction(FlexLayout.Actions.updateNodeAttributes(tabid, {
config: {
...config,
screenSize: screenSize
}
}));
};
nodeDeleteCallback: (tabNodeId) => {
state.model.doAction(FlexLayout.Actions.deleteTab(tabNodeId));
}
}