Sha256: 4a187ab0a779daa8519f8fb86a321567a271e9a99d0b518017b6e9af91d373ed

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Right
# Set: All "+InputType" cards
#
module InputType;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-edit/set/right/input_type.rb"; end
module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  def quick_editor
    @submit_on_change = true
    super
  end

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

  def default_input_type
    :radio
  end

  def raw_help_text
    "edit interface for list cards"
  end

  # def option_label_text option_name
  #   super.downcase
  # end

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

def option_names
  left.prototype_default_card&.try(:input_type_content_options) || super
end

def supports_content_option_view?
  item_name.in? ["checkbox", "radio", "filtered list"]
end
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card-mod-edit/set/right/input_type.rb ~~

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.101.7 tmpsets/set/mod011-card-mod-edit/right/input_type.rb
card-1.101.6 tmpsets/set/mod011-card-mod-edit/right/input_type.rb
card-1.101.5 tmpsets/set/mod012-card-mod-edit/right/input_type.rb
card-1.101.4 tmpsets/set/mod012-card-mod-edit/right/input_type.rb
card-1.101.3 tmpsets/set/mod012-card-mod-edit/right/input_type.rb
card-1.101.2 tmpsets/set/mod012-card-mod-edit/right/input_type.rb
card-1.101.1 tmpsets/set/mod012-card-mod-edit/right/input_type.rb
card-1.101.0 tmpsets/set/mod012-card-mod-edit/right/input_type.rb