Line separator

Updated at:

Introduction

The line separator is a basic Mobi component that separates different content blocks or functional areas.

image

Configuration items

Category

Configuration

Example

Description

Content

Text content

image

The text displayed within the line separator.

Tooltip text

The tooltip text displayed when the mouse pointer hovers over the line separator.

Style

Margin

The margin. For more information, see Common properties.

Text position

The position of the text relative to the line separator.

Text font size

The font size of the text in the line separator.

Line color

image

Optional. The color of the line separator.

Text color

Optional. The color of the text in the line separator.

Interaction

Hide

Hides the component. For more information, see Common properties.

Preserve layout when hidden

Preserves the layout when the component is hidden. For more information, see Common properties.

Properties and methods

Name

Type

Example

Description

text

string

divider.text

The text content of the current line separator component.

hidden

boolean

divider.hidden

Indicates whether the component is hidden.

clearHidden

func

divider.clearHidden()

Clears the hidden value of the component.

clearText

func

divider.clearText()

Clears the text value of the component.

setHidden

func

divider.setHidden(true)

Sets whether the component is hidden.

setText

func

divider.setText('End of list')

Sets the text content of the component.