HTML Content

A versatile component for displaying formatted HTML content with customizable styling and dynamic content generation capabilities. It supports raw HTML, custom styling via CSS, and programmatically generated content through JavaScript functions. Ideal for rich text display, dynamic content rendering, and complex formatted layouts.


Extends: fieldComponent


Fields

Name

Code

Data Type

Description

Label

label

multi-locale

Optional label for the HTML content component

Resource ID

resourceId

text

Unique identifier for the HTML content component

Style Classes

styleClasses

text

Additional CSS classes for custom styling

Inline Style

style

text

Inline CSS styles to be applied to the component

Width Class

widthClass

text

Defines the width of the HTML content component

Visibility

isVisible

boolean

Controls the visibility of the HTML content component

Value

value

text

The primary content or data to be rendered

Height

height

text

Specifies the height of the HTML content container

HTML Content Function

htmlContentFunction

text

A JavaScript function that dynamically generates HTML content for the component


Methods

Name

Description

loadHTMLContent

Dynamically loads and renders HTML content using the specified function

refreshView

Reloads the HTML content and triggers a component update

onViewUpdate

Handles view updates when underlying data changes


Events

Name

Description

onLoad

Triggered when the HTML content component is initially loaded and rendered

onClick

Triggered when the HTML content is clicked