In SpreadJS, the active cell is highlighted by a visible selection border by default. In some scenarios such as creating a custom UI or a read-only experience, you may want to hide this border. This article explains how to remove the visible active-cell selection border using built-in configuration options.
SpreadJS allows developers to customize the appearance and behavior of cell selection through worksheet options. One of these options is selectionBorderColor, which controls the color of the active cell’s selection outline. By setting this value to transparent, the active cell border can be effectively hidden while preserving normal selection behavior.
var sheet = spread.getActiveSheet();
sheet.options.selectionBorderColor = "transparent";
After applying this configuration, selecting a cell will no longer display a visible border, creating a clean, borderless selection experience. For more information on how to work with and customize selection behavior, you can refer to the Selection in SpreadJS demo.
Kristina Ismail