UNPKG

getaddress-autocomplete-modal

Version:

GetAddress.io - Autocomplete modal plug-in

26 lines 1.19 kB
export class Options { constructor(options = {}) { this.id_prefix = "getAddress-autocomplete_modal"; this.css_prefix = "getAddress_autocomplete_modal"; this.delay = 100; this.minimum_characters = 2; this.alt_autocomplete_url = undefined; this.alt_get_url = undefined; this.highlight_suggestion = false; this.highlight_suggestion_start_tag = undefined; this.highlight_suggestion_end_tag = undefined; this.suggestion_count = 6; this.suggestion_template = "<div><b>{formatted_address_0}</b></div><div>{formatted_address_1}{formatted_address_1,, }{formatted_address_2}{formatted_address_2,, }{formatted_address_3}{formatted_address_4,, }{formatted_address_4}{postcode,, }{postcode}</div>"; this.filter = undefined; this.debug = false; this.remember_last_search = true; this.touch_screen_only = true; this.max_screen_width = 500; this.copy_text_on_open = true; this.copy_text_on_close = true; this.placeholder = undefined; this.show_postcode = false; Object.assign(this, options); } } //# sourceMappingURL=Options.js.map