Module
NumericRangeFilter
NumericRangeFilter ( fieldName )
A Filter that only accepts numeric values within a specified range.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | cache(trueFalse) | Enable or disable caching of the filter |
Object | cacheKey(key) | Sets the cache key. |
Object | field(field) | Returns the field name used to create this object. |
Object | from(startPoint) | Sets the endpoint for the current range. |
Object | gt(val) | Greater than value. Same as setting from to the value, and include_lower to false, |
Object | gte(val) | Greater than or equal to value. Same as setting from to the value, and include_lower to true. |
Object | includeLower(trueFalse) | Should the first from (if set) be inclusive or not. Defaults to true |
Object | includeUpper(trueFalse) | Should the last to (if set) be inclusive or not. Defaults to true. |
Object | lt(val) | Less than value. Same as setting to to the value, and include_upper to false. |
Object | lte(val) | Less than or equal to value. Same as setting to to the value, and include_upper to true. |
Object | name(name) | Sets the filter name. |
Object | to(endPoint) | Sets the endpoint for the current range. |
Object | toJSON() | Returns the filter object. |
Method Detail
cache
Object cache ( trueFalse )
Enable or disable caching of the filter
|
cacheKey
Object cacheKey ( key )
Sets the cache key.
|
field
Object field ( field )
Returns the field name used to create this object.
|
from
Object from ( startPoint )
Sets the endpoint for the current range.
|
gt
Object gt ( val )
Greater than value. Same as setting from to the value, and
include_lower to false,
|
gte
Object gte ( val )
Greater than or equal to value. Same as setting from to the value,
and include_lower to true.
|
includeLower
Object includeLower ( trueFalse )
Should the first from (if set) be inclusive or not.
Defaults to true
|
includeUpper
Object includeUpper ( trueFalse )
Should the last to (if set) be inclusive or not. Defaults to true.
|
lt
Object lt ( val )
Less than value. Same as setting to to the value, and include_upper
to false.
|
lte
Object lte ( val )
Less than or equal to value. Same as setting to to the value,
and include_upper to true.
|
name
Object name ( name )
Sets the filter name.
|
to
Object to ( endPoint )
Sets the endpoint for the current range.
|