5 min readUpdated Mar 2, 2026

DataPreviewRenderers Documentation

Overview

The DataPreviewRenderers component of the Vantage platform provides a suite of tools for visually rendering data previews. This component is essential for displaying various data types—such as strings, numbers, booleans, URLs, HTML strings, and complex objects—effectively and intuitively. It features several nested components that allow users to interact with and inspect data in detail, catering to both technical and non-technical users.

Settings

The DataPreviewRenderers component comprises several settings that enhance its functionality and adaptability. Below are the exhaustive details of each setting:

1. SmartCell Component

2. JsonTreeView Component

3. RowDetailDrawer Component

4. DetailValue Component

5. RawJsonView Component

How It Works

  1. Rendering Logic: Each nested component determines how to render data based on its type. For example, SmartCell checks for common data types, including booleans, numbers, arrays, objects, ISO dates, URLs, emails, and HTML strings. It utilizes utility functions to validate and differentiate these types for appropriate display.

  2. Interactivity: Components like SmartCell and its derivatives (like JsonTreeView and RowDetailDrawer) are designed with interactive features. Users can expand/collapse details and click to open URLs or expandable data views, facilitating seamless exploration of data.

  3. Styling and Accessibility: The components incorporate CSS styling for responsive design and accessibility features, ensuring that users can clearly see and interact with the visual elements.

Use Cases & Examples

Use Cases

  1. Data Inspection: Analysts or data scientists can utilize the component to deeply inspect datasets during data cleansing or validation processes. The ability to visualize nested objects or arrays directly in the context of each data row is crucial for this task.

  2. User Interface Development: Front-end developers can integrate these renderers into applications requiring dynamic data presentation, such as dashboards or data management tools, allowing end-users to interact with the data efficiently.

  3. Data Review Meetings: In business environments, stakeholders can leverage the component to present data visually in meetings, enhancing communication and understanding of insights derived from the data.

Detailed Example

Scenario: You are working as a data analyst and need to present quarterly sales data, which includes varied data types, to your management team.

Configuration Example:

jsx
<RowDetailDrawer
    row={{
        id: 1,
        productName: "UltraWidget",
        saleDate: "2023-10-15T14:30:00Z",
        salesAmount: 1500,
        isConfirmed: true,
        feedback: null,
        customer: {
            email: "customer@example.com",
            purchaseHistory: [
                { product: "WidgetA", purchasedOn: "2023-09-15" },
                { product: "WidgetB", purchasedOn: "2023-09-20" }
            ]
        }
    }}
    columns={["id", "productName", "saleDate", "salesAmount", "isConfirmed", "feedback", "customer"]}
    rowIndex={0}
    onClose={() => console.log("Drawer closed")}
/>

In this configuration:

This would render an interactive view where management can see the sales details and access customer's purchase history seamlessly.