Skip to content

Writing extensions

ITask

Namespace: Veva.Core.Domain.Tasks

ITask is a background job that an administrator schedules in the Tasks section of the admin. Your module registers the task type; the administrator adds it, fills in its settings and chooses how often it runs. Implement it for work that should run on a schedule an administrator controls, such as imports, clean-ups or reports.

ITextProcessor

Namespace: Veva.Core.Domain.TextProcessing

A text processor changes the text of components such as Paragraph and Heading before it reaches the page. Veva renders Markdown and data binding this way. Implement ITextProcessor to add your own step: it gets the text, or the previous processor's output, and returns the string to pass on.

IDataSource

Namespace: Veva.Modules.DataSources.Domain.Services

A data source reads rows of data from outside Veva for the Data source list component to show on a page. It is part of the Veva.Modules.DataSources.Domain package, and the add-on packages bring HTTP and SQL Server data sources. Implement IDataSource to read from a system, file or API that those do not cover.

IDataSourceParser

Namespace: Veva.Modules.DataSources.Domain.Services

A data source parser turns the raw response that the HTTP data source fetches into rows and columns for the Data source list component. Veva's data source packages include parsers for JSON, XML, RSS and HTML. Implement IDataSourceParser when an HTTP service returns a format they do not read, or when the data needs reshaping or calculating first.

IManuallyTriggeredHandler

Namespace: Veva.Modules.Documents.Domain.DocumentHandlers

IManuallyTriggeredHandler gives a model an action that an editor runs from the document list, such as an import, a sync or a link to a preview. It runs for the model as a whole, not for one document. Implement it, together with IDocumentHandler, and add the handler to the model.

IDocumentView

Namespace: Veva.Modules.Documents.Domain.DocumentViews

A document view publishes the documents of a model at a URL, for example as a feed or as JSON. IDocumentView decides which documents a request gets, and the endpoints on the view decide the format. Veva's Generic HTTP View covers most needs, so implement IDocumentView only when you need your own way of choosing the documents.

IDocumentViewEndpoint

Namespace: Veva.Modules.Documents.Domain.DocumentViews

A document view endpoint turns the documents that a document view returns into one format, such as RSS, JSON, XML or iCalendar, and gives that format its own URL. Implement IDocumentViewEndpoint to add a format. Editors can then add it to any view on a model's Views tab.

ISettings

Namespace: Veva.Core.Domain.Interfaces

A settings class holds configuration that an administrator edits in the admin, for the whole installation, one website or one user. Each registered class becomes a panel in the settings, and its public properties marked EditorBrowsable become the fields. Implement ISettings when your module needs values set by an administrator, such as an API key.

IContentRenderHook

Namespace: Veva.Core.Domain.Components

IContentRenderHook runs your code around one component each time it renders. The designer calls it a component modifier: an editor adds it to a component, and it can add a CSS class, a style or an attribute, change the component's property values, write markup around it, or leave it out.

IIconProvider

Namespace: Veva.Core.Domain.Components

An icon provider is an icon library. It lists its icons for the icon picker in the page designer and returns the markup for one icon when a page renders it. Implement IIconProvider to offer your own icon set, such as a brand's SVG icons, next to the built-in libraries.

Type to search the docs, components and API.

↑↓ to move ↵ to open Esc to close Search by Veva