• ng.Filter.string is not available in the Lite version

String ng.Filter.string (Mixed val, Integer mx, [Boolean lst_spc = false]) vs. 1.1.0 FULL ONLY

Truncates a string to a maximum length or the last space before the maximum length.

Parameters

Mixed val Required vs. 1.1.0 Full+Lite
The value to filter.
Integer mx Required vs. 1.1.0 Full+Lite
The maximum string length.
Boolean lst_spc (Optional - Default: false) vs. 1.1.0 Full+Lite
If true, the string will be truncate after the last space before the maximum length.

Return

String Required vs. 1.1.0 Full+Lite
The filtered string.

Examples

Using ng.Filter.string(val, mx, lst_spc)
Demo: