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

Configuration items
Category |
Configuration |
Example |
Description |
Content |
Text content |
|
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 |
|
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 |
|
The text content of the current line separator component. |
hidden |
boolean |
|
Indicates whether the component is hidden. |
clearHidden |
func |
|
Clears the hidden value of the component. |
clearText |
func |
|
Clears the text value of the component. |
setHidden |
func |
|
Sets whether the component is hidden. |
setText |
func |
|
Sets the text content of the component. |

