1. Domino UI
  2. Components
  3. Labels
Top Basic Docs

Labels

The Label class represents a simple label element for displaying text.

It provides a way to create and customize labels in a DOM structure.

See also :

Examples

Basic labels A component for showing headings in different sizes and colors

API Docs: Label

Constructors

public void Label(String text)
Constructs a new Label with the specified text content.

text

The text content of the label.

Static methods

public static Label create(String text)
Creates a new Label with the specified text content.

text

The text content of the label.



Returns:

A new Label instance.

Public methods

public Label setText(String text)
Sets the text content of the label.

text

The text content to set.



Returns:

This Label instance for method chaining.

We are a group of passionate people who love what we do

Donate & Support Us