Module: Card::Set::Right::InputType::HtmlFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb

Instance Method Summary collapse

Instance Method Details

#default_input_typeObject



25
26
27
# File 'platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb', line 25

def default_input_type
  :radio
end

#default_item_viewObject



11
12
13
# File 'platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb', line 11

def default_item_view
  :name
end

#quick_editObject

def option_label_text option_name super.downcase end



37
38
39
# File 'platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb', line 37

def quick_edit
  card.left.prototype_default_card.try(:show_input_type?) ? super : ""
end

#quick_editorObject



15
16
17
18
# File 'platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb', line 15

def quick_editor
  @submit_on_change = true
  super
end

#quick_form_optsObject



20
21
22
23
# File 'platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb', line 20

def quick_form_opts
  super.merge "data-update-foreign-slot":
              ".card-slot.quick_edit-view.RIGHT-Xcontent_option_view"
end

#raw_help_textObject



29
30
31
# File 'platypus/tmp/set/gem-defaults/mod011-edit/right/input_type.rb', line 29

def raw_help_text
  "edit interface for list cards"
end