Skip to main content

View Hooks

The View package provides a set of React hooks for working with view schemas and rendering views.

Overview

The View hooks offer the following functionality:
  • Fetching and managing view schemas
  • Rendering views with React
  • Handling view interactions
  • Internationalization support
  • Error handling

API Reference

useViewSchema

Fetches a view schema by ID from the view service.

useViewSchemas

Fetches all available view schemas from the view service.

useViewRenderer

Provides a function for rendering views based on schemas.

useViewTranslations

Provides translations for view components.

useViewErrors

Provides error handling for view components.

useViewForm

Provides form handling for view components.

useViewTable

Provides table handling for view components.

useViewDetail

Provides detail handling for view components.

Examples

Using useViewSchema

Using useViewRenderer

Using useViewTranslations

Using useViewForm

Using useViewTable

Using useViewDetail