> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Method name: readMoreActionType()

# Method package: w

# Method menu location: w --> CollapsibleText --> readMoreActionType

# Method Link: https://dev.wix.com/docs/velo/velo-only-apis/$w/collapsible-text/read-more-action-type.md

# Method Description:

Sets or gets the type of read more action for the collapsible text.

Setting the `readMoreActionType` property sets the type of read more action for
the collapsible text. When a site visitor wants to read more, the collapsible text 
can display the remaining text in 2 ways. 

Set the [`readMoreActionType`](#readmoreactiontype) to one of the following:
**`ExpandOnCurrentPage`**
  + The collapsible text expands and displays the remaining text on the current page.
  + In the collapsed state, the collapsible text contains the introductory text with the ellipsis and a read more button. When the read more button is clicked, the collapsible text expands.
  + In the expanded state, the ellipsis is hidden, collapsible text shows the remaining text, and a read less button appears. When the read less button is clicked, the collapsible text collapses and goes back to the collapsed state.
  + You can use the [`expandText()`](#expandtext) and [`collapseText()`](#collapsetext) functions to expand and collapse the collapsible text. Note that these functions can only be used for this `readMoreActionType`. 

**`LinkToContent`**
  + The collapsible text links to the remaining content. 
  + You must define the link to the remaining content. To do this, set the `link` value in the data object found in the [`readMoreActionData`](#readmoreactiondata) property.
  + The collapsible text contains the introductory text with the ellipsis. By default, this text is clickable and links to the remaining content link that you defined. 
  + Alternatively, you can add a read more button to the collapsible text. In this case, the introductory text is no longer clickable, and the button links to the remaining content link that you defined.
  + Add a read more button by setting the `readMoreButtonVisible` value in the data object found in the [`readMoreActionData`](#readmoreactiondata) property to `true`, or by calling the [`addReadMoreButton()`](#addreadmorebutton) function. 
  + You can remove the read more button from the collapsible text. When you remove the read more button, the introductory text is clickable, and the text links to the remaining content link that you defined. 
  + Remove a read more button by setting the `readMoreButtonVisible` value in the data object found in the [`readMoreActionData`](#readmoreactiondata) property to `false`, or by calling the [`removeReadMoreButton()`](#removereadmorebutton) function. Note that these functions can only be used for this `readMoreActionType`. 

Getting the `readMoreActionType` property gets the type of read more action for the collapsible text.
The `readMoreActionType` property defaults to `LinkToContent`.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## Get a collapsible text's read more action type

```javascript
const myReadMoreActionType = $w('#myCollapsibleText').readMoreActionType; // ExpandOnCurrentPage
```

## Set a collapsible text's read more action type

```javascript
$w('#myCollapsibleText').readMoreActionType = 'LinkToContent';
```

---