Class: CVR_enhedSearcher

CVR_enhedSearcher

Searches cvr

new CVR_enhedSearcher(options)

Parameters:
Name Type Description
options Object CVR_enhedSearcher expects this property:
Properties
Name Type Description
filter object
Properties
Name Type Description
kom_id_officiel string municipalitycode eg.; "151"
Source:
  • searchers/cvrSearcher.js, line 21
Example
 
var cvrSearcherOptions = {
    onSelect : function(result) {
         jQuery('#log').prepend('Virksomhed valgt: '+ result.title + '
'); }, filter: { 'kom_id_officiel' : "151" }, matchesPhrase: "Begynder med ", searchDelay: 200 }; searchers.push({title : 'Virksomhed', searcher : new Septima.Search.CVR_enhedSearcher(cvrSearcherOptions)});

Type Definitions

selectCallback(result)

This function is called when a result is selected.
Parameters:
Name Type Description
result Object
Properties
Name Type Description
title string
description string
data object Company info
Properties
Name Type Description
heading string title
Source:
  • searchers/cvrSearcher.js, line 22