Septima.Search.InfoForOpstillingskredsProvider
Extends Septima.Search.DetailsHandlerDef
Viser info for en opstillingskreds fra GeoSearch
Options
Name | Type | Mandatory | Default value | Description |
---|---|---|---|---|
fields | Object | ["presentationString","id", "name" | Felter, der skal medtages i info |
Examples
Usage
YAML Declaration:
_type: Septima.Search.GeoSearch
_options:
kommunekode: '101'
detailhandlers:
- _type: Septima.Search.InfoForOpstillingsKredsProvider
js client:
// Include septimaSearch
<script type="text/javascript" src="http://search.cdn.septima.dk/{version}/septimasearch.min.js"/>
geoSearcher.addDetailHandlerDef(new Septima.Search.InfoForOpstillingsKredsProvider())
ES6:
import InfoForOpstillingsKredsProvider from './searchers/detailhandlers/InfoForOpstillingsKredsProvider.js'
geoSearcher.addDetailHandlerDef(new InfoForOpstillingsKredsProvider())