client-side-text-utils-o11
Reactive icon

Client Side Text Utils O11

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 25 Mar (7 hours ago)
 by 
0.0
 (0 ratings)
client-side-text-utils-o11

Client Side Text Utils O11

Details
Client Side Text Utils is a lightweight, zero‑dependency JavaScript library for OutSystems ODC, delivering fast, reusable client‑side helpers for common text operations, closing gaps in native logic and keeping UI code clean, consistent, and maintainable.
Read more

Ensure to add the Text Utilities web block to the layout or the screen of the app where you intend to use the functions, else the supporting scripts will not load.


All actions are exposed as functions. Below are the list of all Text functions available:

  • Split: Splits a string into an array based on a separator with an optional limit.
  • Join: Combines an array of items into a single string using a specified separator.
  • TitleCase: Converts input text to Title Case (e.g., "hello world" becomes "Hello World").
  • SentenceCase: Converts input text to Sentence Case (e.g., "hello world" becomes "Hello world").
  • ReplaceText: Replace the first occurance of target text in a string with replacement text.
  • ReplaceAll: Replace all occurance of target text in a string with replacement text with optional match case and whole word match.
  • RepeatText: Repeats a text to a given num of times,
  • UrlSlug: Creates a URL-friendly string by removing accents and replacing special characters with hyphens.
  • TruncateEnd: Shortens text to a maximum length and appends an ellipsis if truncated.
  • FormatName: Format a person's name.

    Rules:

      - If abbreviate=false: returns "First Middle Last" (omitting missing parts)

     - If abbreviate=true: returns "F. M. Last" (first + middle abbreviated)

     - If lastNameFirst=true: returns "Last, First Middle" or "Last, F. M."

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category