Module: Card::Set::Type::LinkList::HtmlFormat
- Extended by:
- AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod005-list/type/link_list.rb
Instance Method Summary collapse
-
#input_type ⇒ Object
-
#items_for_input(items = nil) ⇒ Object
-
#link_list_input(args = {}) ⇒ Object
-
#view: link_list_input ⇒ Object
Instance Method Details
#input_type ⇒ Object
22 23 24 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/type/link_list.rb', line 22 def input_type :link_list end |
#items_for_input(items = nil) ⇒ Object
30 31 32 33 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/type/link_list.rb', line 30 def items_for_input items=nil items ||= card.item_names context: :raw items.empty? ? [["", ""]] : items.zip(card.item_titles(false)) end |
#link_list_input(args = {}) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/type/link_list.rb', line 35 def link_list_input args={} items = items_for_input args[:item_list] extra_class = "pointer-link-list-ul" ul_classes = classy "pointer-list-editor", extra_class haml :link_list_input, items: items, ul_classes: ul_classes, options_card: :all.card # options_card_name end |
#view: link_list_input ⇒ Object
26 27 28 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/type/link_list.rb', line 26 view :link_list_input, cache: :never do link_list_input end |