Text

In Lowcoder, the Text component allows developers to display static or dynamic text within their applications. It supports Markdown formatting, enabling rich text presentation, including headings, lists, links, and images. citeturn0search3 Additionally, the Text component can be styled through the Properties pane or custom CSS, allowing customization of fonts, colors, and other visual aspects to align with the application's design. citeturn0search4 By leveraging the Text component, developers can effectively present information and enhance the user interface of their Lowcoder applications.

Demo about Styling a Text Component

Component Playground

On Component Playground, you can interact with the Text component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Text component.

Component Auto-Docs

In the Auto-Docs of Text component, we have shown how to use different properties of the Text component. It also includes the Styling properties of the Text component.

Properties of the Text component

These properties are accessible in {{ }} notations, as well as in JavaScript Queries.

Property Name
Type
Description

hidden

Boolean

Returns True or False based on whether the Text component is hidden or not

text

String

Returns value/data of the Text component

Events

Events give you the ability to trigger further actions (with Event-Handlers).

Event Name
Description

Click

When a User "click" on the component

Methods

You have the capability to engage with components via their respective methods, which can be accessed by their designated names within any segment where JavaScript is utilised. Additionally, these components can be activated through the 'Control Component' action, which is triggered in response to specific events.

setText() :

text1.setText() method sets the Text component's text property. It takes a String argument

text1.setText("Text component's Text");

clearText() :

text1.clearText() clears the Text component's text property and empties the current value from the component.

text1.clearText();

resetText() :

text1.resetValue() method resets the Text component's text property to the default value of the component.

text1.resetText();

Last updated

Was this helpful?