interactive-image-item
The interactive-image-item is used in the item property of the interactive-image component that servers as a container. The interactive-image-item can be set in various ways using the properties of the interactive-image as well as the properties described below.
Core structure | |
---|---|
id | Provide an id for the item that is used for filtering and as a key |
percentageCoordinates | Percentage x and y coordinates are required. Coordinates are represented as absolute percentage numbers between 0-100. |
title | Give a name/title for the point, for example, Table 1. |
Other options | |
---|---|
color | This allows you to set a specific color for the active/selected point (e.g., when the point is selected or active). |
icon | This allows you to set a specific icon for different states (e.g., when the point is selected active or inactive). |
index | Index for the initial animation. |
groupId | This property allows you to add the item to the group. The groups are created inside the interactive-image component. Effective only initial load. |
style | The following style options are available:
|
Actions | |
---|---|
onPress | The action is triggered when pressing the image's marked coordinate point. Use IntelliSense (ctrl+space) to see the list of available actions. |
State Configuration | Key | Notes |
---|---|---|
=@ctx.component.state. | selected |
|
=@ctx.solution.state. | activeItemId now |
|