Flashing Cells and Rows in AdapTable

View as Markdown

Summary

  • AdapTable can flash Cells (or Rows) when a Rule becomes true
  • Most Flashing Cell Definitions are Change based - but Observable rules are also supported
  • Flashing Rules can be created in the UI or defined in Initial Adaptable State
  • All Flashing-related properties (e.g. flashing styles, duration, target etc.) are highly configurable

Flashing Cells in AdapTable allows users to see changes in cell values that matter to them.

They apply short-lived highlights when data changes or while an Observable Expression is true.

Note

Definitions live in FlashingCell state (and the Flashing Cell wizard).

Default colours, duration, and target come from flashingCellOptions — see Configuring Cell Flashing.

Topics in this Section

TopicSummary
This pageScope, rule, styles, duration, target, wizard, column menu, FAQ
Observable FlashingHistory or time rules for when cells should flash
Flashing RowsFlashTarget: row, duration always, clearing a row flash
Configuring Cell FlashingflashingCellOptions defaults and precedence when definitions omit properties
Technical ReferenceState shapes, API, FlashingCellDisplayed event

Cells or Rows can be made to flash:

  • on any change or when the change meets a defined rule
  • or when an Observable Expression over history / time becomes true

Flashing Concepts

Flashing in AdapTable comprises 5 key concepts:

  • Scope: which Columns or DataTypes when changed will cause the Flash to happen
  • Rule: why the Flash is applied (i.e. what condition - or observable - causes a Cell or Row to flash)
  • Styles: how the Flash is applied - different styles are available for up, down and neutral changes
  • Duration: when (i.e. how long) the Flash will be applied - either a number (of milliseconds) or 'always'
  • Target: where the Flash is applied - either the cell whose data changed, or the whole row

Hint

You can set defaults for all these properties - so they are only overridden when they do not meet requirements

Note

A Flashing Cell Definition can be limited to specific Layouts via Layout Extensions

Flashing Cells
Fork
  • This very basic example sets all numeric columns to flash (and has dummy data 'ticking' regularly)
  • The Definition is Type Change with ANY_CHANGE() so every data change causes a Flash
  • The default settings for colours and durations are used
Loading demo…

Scope

Users can specify which columns or rows in AdapTable are able to flash.

This is done by leveraging the commonly-used Column Scope Object.

Scope contains up to 4 sets of options:

  • Selected Columns - a list of Columns which will Flash

Note

FreeText Columns can flash when changed. Calculated Columns flash when a referenced column's value changes — see Flashing Calculated Columns.

  • Data Types - All columns which have a particular data type (e.g. number, text or date)
  • Column Types - All columns which contain the selected Column Type
  • All Columns - An entire Row can be Flashed by providing a Scope of 'All'

Rule

The Rule determines whether a Cell or Row should Flash.

It is an Expression evaluated with AdapTableQL.

The rule can include:

  • Relative Change Functions (ANY_CHANGE, PERCENT_CHANGE, ABSOLUTE_CHANGE) and / or
  • Value comparisons, evaluated per data change (similar to Alert Rules and Conditional Styles)

Hint

The most common Change Rule is ANY_CHANGE which returns true for any data change

When the Flashing Cell Scope covers multiple columns or a Data Type, use $SCOPE to refer to the column that changed - e.g. ANY_CHANGE($SCOPE) AND $SCOPE > 5000.

Flashing Cells using a Rule
Fork
  • In this example cells in 4 columns (Github Stars, Github Watchers, Open Issues, Closed Issues) tick regularly
  • The Definition is Type Change; they only flash when the ticking data change occurs in a row where the Language is 'JavaScript'.
Try It Out
  • Change the Rule so it flashes also (or instead) for TypeScript projects
Loading demo…

Observable

It is also possible to create an Observable Flashing Rule.

When this happens the cell flashes while a live Observable Expression evaluates to true.

The Observable Expression can evaluate either using history or time.

Hint

  • This allows you to set flashing on a nth change rather than all changes (and in a desired time period)
  • e.g. to set Price to flash when it changes 3 times in 5 mins use: CHANGE_COUNT{[price], WITHIN(5m)} > 3

Change Styles

There are 3 "Change Styles" for the Flash (which are all configurable):

StyleWhen InvokedColumn Data Types
UpData change direction is upnumber, date
DownData change direction is downnumber, date
NeutralData change has no directiontext, boolean

Duration

Duration sets for how long the cell / row will flash. The value provided can be one of 2 types:

  • a number (expressed in milliseconds)
  • 'always' - which will keep the cell / row in the new style indefinitely

    Hint

    Use the Clear Flash Context Menu Item to remove a currently applied Flash Style from cells or rows

Target

Target defines what will Flash. There are 2 options:

  • Cell - the cell that triggered the data change
  • Row - the entire row which contains the cell which triggered the data change

    Find Out More

    See Flashing Rows for more on using the Row Trigger

Using Flashing Cells

Run-time access to Cell Flashing is primarily available in the Flashing Cell section of the Settings Panel. This displays a list of existing Flashing Cell Definitions with buttons to edit, suspend, share or delete.

UI Step by Step Guide

Using the Flashing Cell Wizard

Flashing Cell Menu Item

Flashing can be turned on for any Column by clicking Add Flashing Cell in the Column Menu.

Note

AdapTable can listen to 'neutral' data changes, so Flashing (and this menu item) is available in all columns

This will create a new Flashing Cell Rule with 2 features:

  1. Type Change with an Expression using ANY_CHANGE() so cells will flash when any data changes in the column
  2. Using Default Flashing properties that were set in Flashing Options (or provided by AdapTable)

Hint

  • Flashing can be turned off (for any Column which has a Flashing Scope of a single Column)
  • This is done via the Remove Flashing Cell menu item which appears automatically in the Column Menu

Setting UI Entitlements

The UI Entitlements behaviour is as expected for Full and Hidden Access Levels.

The ReadOnly Entitlement behaviour is that Flashing Cells will still be applied but Users are not permitted to manage or suspend them.

FAQ

Can we change the colours for a Flashing Cell column? Yes you can choose any colours you want for both the up and down change in number and date Columns. And you can also set the style for 'neutral' changes in text and boolean columns.

Can we change the colour based on the row (e.g. depending on other values in the row, the flash will be different colours or duration)? Yes, simply create a new Flashing Cell Definition for that particular rule using an Expression.

Can we turn on flashing for columns which don't contain numbers? Yes, Flashing Cell Definitions can be provided for any column or combination of columns

Can we set the flash to remain in place until I see it? Yes, set the FlashDuration to always and the Cell / Row will remain coloured until explicitly cleared by the user

Can we flash Calculated Columns when they update? Yes. Calculated Columns flash when a referenced column's value changes — see Flashing Calculated Columns.

What is the difference between Change and Observable Flashing? Change reacts to this data change (any / percent / absolute move, or a value comparison). Observable reacts to history over a window (or silence) — e.g. three ticks in five minutes, or net move of more than 20

Can we react in code when a cell flashes? Yes. Subscribe to FlashingCellDisplayed on event API — see Flashing Cell Displayed Event.