Description

A Spreadsheet table is a type of Data Table where users can add and edit numeric data within a grid.

image-20250408-183124.png

Usage & Behavior

General Guidelines

Structure

Content

Numbers inside cells will be aligned to the right.

States

State

Example

Comments

Regular

image-20250408-144616.png

Hover

image-20250408-144652.png

Focused + Selected

image-20250402-085655.png

Read only

image-20250408-144752.png

No Data

image-20250408-144837.png

Error

Text Field-1.png

See Field Validation.

Warning

Text Field-2.png

User edit (optional)

image-20250408-145016.png

Indicates that the value in the cell was manually edited without saving.

Algorithm recalculation (optional)

image-20250408-145038.png

Indicates that the value in the cell was automatically recalculated due to a function, as a result of another cell whose value was manually edited without saving.

Comment (optional)

image-20250408-145114.png

Indicates that the cell contains a comment.

Interaction

Selection and focus

Single selection

image-20250408-181419.png

Multiple selection

image-20250408-181113.pngimage-20250408-180303.pngimage-20250408-181519.pngimage-20250408-181507.png

Other selection guidelines

Edit

image-20250409-125630.png

Copy and paste

Comments on cells (optional)

Users will be able to enter comments, edit comments, add to comments and delete comments. This will be done using toolbar actions.

Tooltips on hover (optional)

On hover, a tooltip will be shown above the relevant cell.

Best Practices

Use:

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Focus management

Some behaviors are different from regular data tables:

Keyboard

Description

Tab

  • From a previous component, the first cell in the top row will be focused.

    • If the user had previously navigated in the table:

      • If the user previously selected a single cell, returning navigation to the table will focus on this cell.

      • If the user previously selected multiple cells, returning navigation to the table will focus on the first cell in the top row.

  • From any cell in the table, focus will move to the next component on the screen.

  • Where header cells are focusable, tab will move the focus to the first cell of the header row.

Shift + Tab

  • From the next component, the first cell in the top row will be focused.

    • If the user had previously navigated in the table:

      • If the user previously selected a single cell, returning navigation to the table will focus on this cell.

      • If the user previously selected multiple cells, returning navigation to the table will focus on the first cell in the top row.

  • From any cell in the table, the focus will move to the previous component on the screen.

Space

  • When a cell is focused but not in edit mode - will delete its content (if exists), and locate the cursor inside the cell.

  • When a cell is in edit mode:

    • Number cells: N/A.

    • Alpha-numeric cells: used as text entry.

Enter

  • When a cell is focused, will move the focus down one cell. Any edits will be kept.

  • When on the bottom row, the focus will remain on the cell, and the cell will change from edit view to highlight view.

Esc

  • In edit mode: Discards any edits and reverts to the previous value.

  • Otherwise: N/A

Arrows

  • Move the focus between cells accordingly.

  • When multiple cells are selected, focus will move to the next (according to the direction of the clicked arrow) cell after the top left most cell.

  • Right/Left from the most right and most left rows will not move the focus.

  • Up/Down from the top and bottom rows will not move the focus.

  • When in edit mode, arrows behave as in regular Text fields.

Shift + Arrows

Selects additional cells.

Ctrl + Shift + Arrows

Selects the entire row or column accordingly.

Home

Moves the focus to the first cell in the first row in the table.

End

Moves the focus to the last cell in the table.

F2 / fn+F2

Puts the cell into edit mode (cursor located at the end of the characters) without highlighting the existing value.

 

 

Design

Zeplin link

Screen thumbnail

https://zpl.io/vMqknvn

Projected allocations 1.png

https://zpl.io/bl5NNJ1

Shift constraint Period 05 B.png

https://zpl.io/EmOYyJ8

LTP.png

Code