Posted 6 August 2026, 5:00 am EST
Hi,
Thank you for reaching out to SpreadJS support.
Here are the direct answers to your questions regarding the drag-fill indicator border styling:
Answers to Your Questions
-
Is there an option (e.g. fillIndicatorStyle, dragFillBorderStyle) to set the drag-fill border to dotted/dashed?
No. SpreadJS currently does not have a public API property (such as fillIndicatorStyle or dragFillBorderStyle) to change the line style of the drag-fill preview rectangle from solid to dotted or dashed.
While sheet.options.selectionBorderColor allows you to customize the color of the selection and drag handle, the line style (solid) of the drag-fill preview indicator is fixed within the internal canvas rendering logic.
-
Is there a canvas paint hook for the drag-fill overlay?
No. There is currently no public paint hook or canvas drawing callback exposed specifically for the drag-fill overlay layer.
While events like DragFillBlock and DragFillBlockCompleted allow you to intercept and customize the data/cell logic during a drag-fill operation, the visual preview rectangle drawn while dragging is rendered directly on the interaction canvas layer.
-
Feature Request Status
Since there is currently no public API to configure the drag-fill border style (such as solid, dotted, or dashed), we have escalated your request to our development team to confirm whether this behavior can be supported.
The internal tracking ID for this request is SJS-35611. We will update you as soon as we receive any information from the development team.
Current Options & Workarounds
While custom border styles for the drag preview are not supported out of the box, here are related configuration options available in SpreadJS:
Customize Indicator Color:
const sheet = spread.getActiveSheet();
sheet.options.selectionBorderColor = “blue”; // Updates selection and fill indicator color
Toggle Drag-Fill Tooltip:
spread.options.showDragFillTip = true; // Enables/disables the floating fill preview tooltip
Regards,
Priyam