In-place auto-complete editor

Could anyone do this? Is it possible? I am writing a Rails 3 application and it seems that it should be possible to do it using jQuery autocomplete and best-in-place, but I have not seen it.

+6
source share
2 answers

Too late for an answer, but ... I just ran into a similar problem and solved this problem as follows:

#view best_in_place @somewhat, :title, type: :input, inner_class: 'somewhat_title', ok_button: 'ok', data: { autocomplete: true } #coffee $("span[data-autocomplete='true']").live 'click', -> $('.somewhat_title').autocomplete #usual autocomplete code here, nothing special 
+3
source

I used rails3-jquery-autocomplete. In mind, this will be something like:

 best_in_place @object, :name, :type => :input, html_attrs: { "data-autocomplete" => your_autocomplete_path } 
+2
source

Source: https://habr.com/ru/post/911624/


All Articles