6 min readUpdated Mar 2, 2026

ExpandedTileModal Documentation

Overview

The ExpandedTileModal component is an integral part of the Vantage analytics & data platform. Its primary purpose is to display an expandable modal containing various data visualizations and insights derived from a defined tile configuration. It supports multiple content types, including text, graphs, and insights, which can be customized to meet user-specific requirements. The component ensures a responsive layout, adapting to different screen sizes, and provides a rich user interaction experience.

Features

Props

The following props are used to initialize and define the behavior of the ExpandedTileModal:

Tile

javascript
tile

Config

javascript
config: propConfig

Expanded Content

javascript
expandedContent = []

Stats

javascript
stats = []

Settings

The ExpandedTileModal operates with numerous internal settings that govern its appearance and functionality. Here are the detailed explanations of those settings:

1. Expanded Content Configuration

2. Statistics

3. Close Modal Functionality

4. Layout and General Settings

How It Works

  1. Modal Display: When triggered (usually via user action), the ExpandedTileModal takes the tile data and renders it in a visually appealing modal format.
  2. Rendering Content: It maps through the expandedContent array to create a responsive grid layout using the react-grid-layout library. Each content item is rendered based on its type, applying specific rendering logic.
  3. Statistics Integration: The component matches the statistical data from the stats array to the appropriate workflows and presents relevant insights alongside the graphical or text representation.
  4. Dynamic Style Evaluation: The evaluateRules function is called to determine if any style overrides should be applied based on the provided configurations and data.
  5. Responsive Design: The ResponsiveGridLayout ensures that items are displayed correctly across a variety of screen sizes, ensuring that the user experience is consistent and professional.

Use Cases & Examples

Use Case 1: Data Presentation in Business Analytics

In a business analytics dashboard, the ExpandedTileModal could be utilized to present sales performance data over a quarter. The tile could display various graphs showing sales trends, insights into top-selling products, and potential warning flags for underperforming items.

Use Case 2: Operational Dashboards in IT

For IT operations, the modal can be used to display system performance metrics. This might include uptime statistics, error rates, and service-level agreement (SLA) compliance data.

Example Configuration for Sales Performance

To create a modal displaying quarterly sales data, the configuration might look like this:

json
{
    "tile": {
        "config": {
            "workflows": [
                { "id": "salesQ1", "title": "Sales Q1" },
                { "id": "salesQ2", "title": "Sales Q2" }
            ]
        }
    },
    "expandedContent": [
        {
            "id": "title1",
            "type": "text",
            "text": "Quarterly Sales Overview",
            "config": {
                "style": {"fontSize": "lg", "fontWeight": "bold"}
            }
        },
        {
            "id": "graph1",
            "type": "graph",
            "workflowIds": ["salesQ1", "salesQ2"],
            "config": {
                "graphType": "line"
            }
        },
        {
            "id": "stat1",
            "type": "bignumber",
            "workflowId": "salesQ1",
            "label": "Total Sales",
            "config": {
                "justifyContent": "center"
            }
        }
    ],
    "stats": [
        { "value": "$100,000", "label": "Sales Q1", "color": "text-green-600" },
        { "value": "$120,000", "label": "Sales Q2", "color": "text-blue-600" }
    ]
}

In this example, the modal presents a title, a sales performance graph, and a big number highlighting total sales for Q1. The statistics for each quarter (sales amount and labels) are provided to support the visuals.

This detailed configuration ensures that the ExpandedTileModal effectively communicates important sales data to stakeholders and decision-makers.

Billing Impact & AI Integrations

Currently, there are no direct billing impacts associated with the use of the ExpandedTileModal itself. However, usage of certain metrics or heavy graphical rendering might incur costs related to additional data source queries or processing efforts.

In terms of AI integration, specifics are not outlined in the current code. However, there is a placeholder for AI-based insights in the “insightbox” type, which could be integrated in the future to recommend actions or analyze trends intelligently based on user interactions.

This comprehensive documentation provides all necessary details to effectively utilize the ExpandedTileModal component within the Vantage platform.