Module: Card::Set::All::Autocomplete::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod009-search/all/autocomplete.rb
Instance Method Summary collapse
-
#add_autocomplete_item_path ⇒ Object
-
#autocomplete_field(item, options_card_name, extra_classes = "") ⇒ Object
-
#name_autocomplete_field(item, extra_classes = "") ⇒ Object
-
#view: add_autocomplete_item ⇒ Object
-
#view: goto_autocomplete_item ⇒ Object
Instance Method Details
#add_autocomplete_item_path ⇒ Object
36 37 38 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/all/autocomplete.rb', line 36 def add_autocomplete_item_path path end |
#autocomplete_field(item, options_card_name, extra_classes = "") ⇒ Object
21 22 23 24 25 26 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/all/autocomplete.rb', line 21 def autocomplete_field item, , extra_classes="" haml :autocomplete_input, item: item, options_card: , extra_classes: extra_classes end |
#name_autocomplete_field(item, extra_classes = "") ⇒ Object
28 29 30 31 32 33 34 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/all/autocomplete.rb', line 28 def name_autocomplete_field item, extra_classes="" # select_tag "autocomplete_#{card.key}", "", class: "_select2autocomplete" text_field_tag "pointer_item", item, class: "pointer-item-text form-control _autocomplete #{extra_classes}", placeholder: placeholder_text, "data-options-card": %i[all by_name].to_name end |
#view: add_autocomplete_item ⇒ Object
17 18 19 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/all/autocomplete.rb', line 17 view :add_autocomplete_item, unknown: true do autocomplete_item :add, icon_tag(:add), autocomplete_label end |
#view: goto_autocomplete_item ⇒ Object
13 14 15 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/all/autocomplete.rb', line 13 view :goto_autocomplete_item do autocomplete_item :goto, goto_autocomplete_icon, autocomplete_label end |