Methods
(static) blurAll(node)
Blurs (unfocuses) a specified DOM node and all relevant child nodes. This
function will recursively blur all <a>, <button>, <input>,
<textarea> and <select> child nodes found.
- Parameters:
-
Name Type Description node{Object} the HTML DOM node - Source:
- RapidContext.Util.js, line 78
(static) toTitleCase(str) → {string}
Converts a string to a title-cased string. All word boundaries are replaced with a single space and the subsequent character is capitalized.
All underscore ("_"), hyphen ("-") and lower-upper character pairs are recognized as word boundaries. Note that this function does not change the capitalization of other characters in the string.
- Parameters:
-
Name Type Description str{string} the string to convert - Returns:
- {string} the converted string
- Examples:
-
RapidContext.Util.toTitleCase("a short heading") ==> "A Short Heading"RapidContext.Util.toTitleCase("camelCase") ==> "Camel Case"RapidContext.Util.toTitleCase("bounding-box") ==> "Bounding Box"RapidContext.Util.toTitleCase("UPPER_CASE_VALUE") ==> "UPPER CASE VALUE" - Source:
- RapidContext.Util.js, line 61