[]
        
(Showing Draft Content)

Double-click for Auto Fill

SpreadJS allows users to fill data by double-clicking the fill handle. This operation is useful when users need to fill values or formulas down a column without manually dragging the fill handle across many rows.

When users double-click the fill handle, SpreadJS determines the fill range based on the surrounding data and fills the empty cells in the target column. The fill result depends on the source value and the selected fill option, such as Copy Cells, Fill Series, Fill Formatting Only, and Fill Without Formatting.

Double-Click Auto Fill Operations

When the fill handle is double-clicked, the empty cells down the column are filled based on the selected source range.

The following auto fill operations can be performed by double-clicking the fill handle.

  • Auto Fill Numbers: If the source range contains numeric values, SpreadJS fills the column by using the detected numeric pattern and the selected fill option.

    autoFillNumbers.gif

  • Auto Fill Dates: If the source range contains date values, SpreadJS fills the column with date values. By default, double-clicking the fill handle copies date values. To fill consecutive dates, open the fill options menu and select Fill Series.

    autoFillDates.gif

  • Auto Fill Formulas: If the source range contains a formula, SpreadJS copies the formula down the column.

    autoFillFormulars.gif

Notes:

  • Double-click auto fill works only when there are non-empty cells in the column adjacent to the fill handle.

  • When users double-click the fill handle, SpreadJS fills down to the last non-empty cell in the current region.

  • If the adjacent column contains empty cells, SpreadJS fills down to the last non-empty cell in the adjacent column.

Double-Click Auto Fill in Worksheet Tables

When double-click auto fill is used inside the data range of a worksheet table, SpreadJS determines the fill range based on whether the next cell in the table range contains a value.

  • If the next cell has no value, SpreadJS fills the subsequent empty cells in the table range until it reaches a cell that contains a value.

doubleClick.gif

  • If the next cell has a value, SpreadJS overwrites the subsequent non-empty cells in the table range until it reaches an empty cell.

doubleClick2.gif

This behavior applies within the table data range.