Sets or toggles the flag bit for the given key in the cell's styles. If the value parameter is not set, then the flag is toggled.
value
Example that toggles the bold font style:
const cells = graph.getSelectionCells();setCellStyleFlags(graph.model, cells, 'fontStyle', constants.FONT.BOLD); Copy
const cells = graph.getSelectionCells();setCellStyleFlags(graph.model, cells, 'fontStyle', constants.FONT.BOLD);
that contains the cells.
Array of Cells to change the style for.
Key of the style to be changed.
Integer for the bit to be changed.
Optional
Optional boolean value for the flag.
Sets or toggles the flag bit for the given key in the cell's styles. If the
value
parameter is not set, then the flag is toggled.Example that toggles the bold font style: