Label

From HTML5 Builder
Jump to: navigation, search

The Label component is a control that can be used to show any content, from plain text to raw HTML code.

Configuration

You can define the content of a Label using its Caption property.

Usage

Get and Set the Caption

From PHP, you can interact with the Caption property.

From JavaScript, you can use the html() jQuery method:

var currentCaption = $("#ComponentName").html();
$("#ComponentName").html("New caption");

Client-side Features

DOM Elements

The component generates the following client-side DOM elements:

  • Wrapper (HTMLDivElement). Full web browser support. Access it with $("#ComponentName_outer").get()[0].
    • Main element (HTMLDivElement). Full web browser support. Access it with: $("#ComponentName").get()[0].

Client-side Events

Documented in the RPCL Reference.

Server-side Features

Properties, Methods and Events

Documented in the RPCL Reference.

See Also

  • Alternatives: MLabel (mobile applications).