Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Как настроить интеграцию с dadata.ru? #327

Discussion options

You must be logged in to vote

Вот такой есть пример, вызывающий кастомный linkToInput c JS от DaData с контролем загрузки JS (замените только YOUR_TOKEN_HERE на ваш токен):

=: linkToInput(title: "*"; html: $html; code: $code; refresh: true; button: "Показать") 

  ```html:html
  <i class="fa fa-spinner" id="form-spinner"></i><input id="address_" name="address" type="text" style="display: none; border: solid 1px #eee; padding: 5px"/>
  <textarea id="ttmInput" style="display: none"></textarea>
  <script>
  (()=>{
	    if(!$("#address_").suggestions){
	  	  $('head').append('<scr'+'ipt src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></scr'+'ipt>'
		  +'<link href="https://cdn.jsdelivr.net/npm/sugg…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ttm-alexeypolunin
Comment options

@ttm-alexeypolunin
Comment options

Answer selected by ttm-alexeypolunin
@erpic-ru
Comment options

@brahmanda
Comment options

@ttm-alexeypolunin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment