• ng.Filter is not available in the Lite version

Object ng.Filter vs. 1.1.0 FULL ONLY

The ng.Filter object is a collection of functions with general filters functions

Properties

Function ng.Filter.any (val) vs. 1.1.0 FULL ONLY
This function returns the value as is.
Function ng.Filter.string (val, mx, lst_spc) vs. 1.1.0 FULL ONLY
Truncates a string to a maximum length or the last space before the maximum length.
Function ng.Filter.number (val, mn, mx) vs. 1.1.0 FULL ONLY
Filters a numeric value and set it between an optional minimum and maximum values.
Function ng.Filter.integer (val, mn, mx) vs. 1.1.0 FULL ONLY
This function is the same as ng.Filter.number except it returns an integer.
Function ng.Filter.between (val, mn, mx) vs. 1.1.0 FULL ONLY
This function is the same as ng.Filter.number
Function ng.Filter.less_than (val, mx) vs. 1.1.0 FULL ONLY
Filters a number and make sure its less or equal a maximum value.
Function ng.Filter.greater_than (val, mn) vs. 1.1.0 FULL ONLY
Filters a number and make sure its greater or equal a minimum value.
Function ng.Filter.date (val, mn_date, mx_date) vs. 1.1.0 FULL ONLY
Filters a date and set it between an optional minimum and maximum dates.
Function ng.Filter.date_between (val, mn_date, mx_date) vs. 1.1.0 FULL ONLY
This function is the same as ng.Filter.date
Function ng.Filter.date_greater_than (val, mn_date) vs. 1.1.0 FULL ONLY
Filters a date value and make sure its greater than a minimum date.
Function ng.Filter.date_less_than (val, mx_date) vs. 1.1.0 FULL ONLY
Filters a date value and make sure its less than a maximum date.
Function ng.Filter.credit_card (val, type) vs. 1.1.0 FULL ONLY
Filters a value as a credit card number based on the card type.
Function ng.Filter.cvv (val, mixed) vs. 1.1.0 FULL ONLY
Filters a value as a credit card cvv number based on the card type.