Skip to main content

$cropText

Crops the text to a specified length, starting from a specified index and using a specified delimiter.

Parameters

ParameterDescription
textThe text to crop
limitOptional. The maximum length of the cropped text. Default is 2000.
startOptional. The starting index from where to crop the text. Default is 0.
charOptional. The delimiter to use for splitting the text. Default is an empty string.

Example

<AoiClient>.addCommand({
name: "crop-text",
code: `
$cropText[This is a long text; 10; 5; " "]
`,
});