# Document viewer

## General

General data is required for all portlets.

[General configuration](https://help.novacuraflow.com/6.12/development/flow-portal-2/common-configuration#general)

## Listeners

The portlet can listen to the following events:

* On Row Selection
* On Point Selection

<div align="left"><img src="https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M8tbrSaGIRYe9EthohB%2F-M8tdKUq3o-yseWI9ODM%2Fimage.png?alt=media&#x26;token=86d2d1f8-ad64-43be-9ff2-c11d964ae93b" alt=""></div>

[Listeners configuration](https://help.novacuraflow.com/6.12/development/flow-portal-2/common-configuration#listeners)

## Data

### Data source

The portlet data source configuration enables the portlet to execute specified queries towards the chosen database connector to fetch data, or fetch data from a workflow.

* Database: uses a flow connector to retrieve data from a database
* Workflow: runs a workflow to retrieve data

[Data source configuration](https://help.novacuraflow.com/6.12/development/flow-portal-2/common-configuration#database-source)

[Workflow source configuration](https://help.novacuraflow.com/6.12/development/flow-portal-2/common-configuration#workflow-source)

### Presentation

Data: the content which is to be displayed

File name: the name of the file

<div align="left"><img src="https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M0rReCWp3ZqoBtrZI2H%2F-M0rRoA2taa15E9fxCiE%2Fimage.png?alt=media&#x26;token=d322c78b-6edb-4229-847b-3ce5529853c8" alt=""></div>

## Style

Change the header text color and add a header stripe by configuring style.

[Style configuration](https://help.novacuraflow.com/6.12/development/flow-portal-2/common-configuration#style)
