Skip to content

insales/insales-autocomplete-address

Repository files navigation

InSales - autocomplete address

Usage

<div class="insales-autocomplete-address">
  <input
    type="text"
    class="insales-autocomplete-address-input"
    placeholder="Введите адрес"
    value=""
  >
  <ul class="insales-autocomplete-address-result-list"></ul>
</div>


<script type="text/javascript">
  new InsalesAutocompleteAddress('.insales-autocomplete-address', {
    autoLocation: true,
    debounceTime: 0,
    onChange: (data)=>{
      console.log('onChange', data);
    }
  });
</script>

Options

  • autoLocation (default: true): Определять адрес автоматически?

  • debounceTime (default: 0): Задержка между запросами в КЛАДР

  • onChange (default: function): Callback после выбора адреса

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published