String Optimizer

Content Type: Module
Categories:

Overview

String Optimizer module has several JavaScript functions which can be used in your application such as repeat, charAt, search, padStart etc. 

These functions can be called in a JavaScript action or a nanoflow. 

Documentation

FOR PLATFORM-SUPPORTED CONTENT


Please see in the Mendix documentation for details.



FOR COMMUNITY-SUPPORTED CONTENT



Description

String Optimizer module has several JavaScript functions which can be used in your application such as repeat, charAt, search, padStart etc. 

These functions can be called in a JavaScript action or a nanoflow. 

You can view the complete list of JavaScript action in the features section. 



Typical usage scenario

If in your application, you need to perform some actions on any string like creating a new string by repeating old string pattern or to split a string into substrings or to append a string at the begging or end of another string you and many more than you can directly import this module and use these functions. 



Features and limitations

  1. repeat - The repeat function creates a new string by repeating the given string a specified number of times and returns it.   
  2. charAt - The charAt function returns the character at the specified index in a string.   
  3. charCodeAt - The charCodeAt function returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index.  
  4. split - The split function divides a string into a list of substrings.  
  5. search - The search function searches for a match between a given string and a regular expression.  
  6. padStart - The padStart function pads the current string with another string to the Start.  
  7. padEnd - The padEnd function pads the current string with another string to the end.  

 



Dependencies [optional]

  • Requires Mendix 9.1.0 or above 
  • Nanoflow Commons 


Installation [optional]

  1. Download the package from marketplace. 
  2. Import the module package into your project.  
  3. Configure security of application by providing access for respective module roles.  
  4. You may add String Operations page to navigation to view the example (check the screenshot below) or you may use the functions directly present under the JavaScript action folder. 
  5. Navigate to the String Functions Page.
  6. Select function from dropdown and provide the inputs in fields then click on submit.





Configuration [optional]

[Describe the necessary steps to configure the content]



Known bugs [optional]

[Describe the known bugs]



Frequently Asked Questions [optional]

  • Q:
  • A:


 


 

Releases

Version: 1.0.0
Framework Version: 9.1.0
Release Notes: This is the initial release of this module which contains several JavaScript functions to work with strings.