(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Raster

Overview

Example Raster

Specs

Tokens

Token Description
displayName Display name shown in the structure panel
image Background image URL
rasterHeight Overall height of raster in pixels
rasterWidth Overall width of raster in pixels
rectH Height of each grid cell
rectW Width of each grid cell
axisTextColor Color of axis labels
rectBackgroundColor Background color of selected grid cells
textColor Text color in selected grid cells
enableRaster Controls visibility of the raster grid
paddingClass CSS spacing class
dataSourceId Data source ID for retrieving raster selection data
datasourceParametersMap HTTP parameters for data fetching
events Configurable component events
ON_RASTER_CLICK (Events) Event triggered when a grid cell is clicked
ON_INIT (Events) Event triggered when raster is initialized
ON_DESTROY (Events) Event triggered when raster is removed
visibilityPolicySetId Determines visibility by policy set
displayConditions Conditional display rules
id Unique identifier for programmatic access
dataTestId Testing hook ID for automated testing
enableAsHotspot Enables the component as a guided tour hotspot
guidedTourHotSpotTitle Title for guided tour hotspot
guidedTourHotSpotDescription Description for guided tour hotspot
getData Retrieves the current selection data
clearData Removes all selections
reloadData Refreshes raster data from source
toggleRasterOn Enables display of grid lines
toggleRasterOff Disables display of grid lines
getRasterState Returns current visibility state of grid lines

Structure

(Configured in General Properties)

(Configured in Visual Properties)

(Configured in Datasource)

(Configured in Visibility)

Styling

(Configured in Visual Properties)

Height & Width

(Configured in Visual Properties)

Visual Properties tab

Color

(Configured in Visual Properties)

Actions & Variants

(Configured in Events)

The Dynamic Raster Component provides several programmatic actions that can be triggered through flows or other components:

Tests

(Configured in Testing Hooks)

Authorization

(Configured in Authorization)

Links

Guidelines

Usage

Sizing & Layout

States & Feedback

Color & Contrast

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Size the canvas and cells to the image so selections align. Rely on defaults that misalign grid and background. rasterWidth, rasterHeight, rectSize / rectW, rectH
Toggle grid lines to clarify target areas on busy images. Leave the grid off when the image reduces legibility. toggleRasterOn, toggleRasterOff, enableRaster
Use high-contrast colors for selected cells and their text. Indicate selection with low-contrast fills or color-only cues. rectBackgroundColor, textColor
Initialize/refresh selections from your source. Hardcode stale selections into the image. dataSourceId, datasourceParametersMap, reloadData
Read the current grid state before toggling. Rapidly flip grid visibility without checking state. getRasterState, toggleRasterOn, toggleRasterOff
Limit interaction to cell clicks and handle them centrally. Depend on hidden affordances or image-only hotspots. events.ON_RASTER_CLICK
Hide the component for unauthorized users. Show it and hope downstream checks prevent changes. visibilityPolicySetId, displayConditions

Accessibility