Search.../

collapseText( )

Collapses the collapsible text and displays the introductory text with an ellipsis.

Description


Note: This function is only relevant if the readMoreActionType property is set to ExpandOnCurrentPage.

The collapseText() function collapses the collapsible text and displays the introductory text. The introductory text is accompanied by an ellipsis to signal to the site visitor that there is additional text.

Syntax

function collapseText(): void

collapseText Parameters

This function does not take any parameters.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

Collapse the collapsible text

Copy Code
1$w('#myCollapsibleText').collapseText();