date.Searcher
Extends Septima.Search.Searcher
Returns a septima.search date on exact match
Options
Name | Type | Mandatory | Default value | Description |
---|---|---|---|---|
presentationFormat | string | "YYYY-MM-DD" | e.g. "D/M-YYYY" | |
parseFormats | Array.<string> | locale specific | e.g. ["D/M-YYYY"] | |
parseFormat | string | locale specific | e.g. "D/M-YYYY" | |
todayString | string | locale specific | e.g. "Today" | |
iconURI | string | e.g. Url of icon | ||
todayInTitle | boolean | false | Show todayString in title if result is current data |
Examples
Usage
JSON Declaration:
{
_type: "date.DateSearcher"
},
ES6:
import DateSearcher from './searchers/DateSearcher.js'
controller.addSearcher(new DateSearcher())