Sha256: 04f2fa160d4185acf2065bc513e9c7b79424a233b9800e9832dbaf1e8be65cef

Contents?: true

Size: 1006 Bytes

Versions: 1

Compression:

Stored size: 1006 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Right
# Set: All "+ContentOptions" cards
#
module ContentOptions;
extend Card::Set
def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/list/set/right/content_options.rb"; end
def default_limit
  cql_limit = fetch_query.limit if respond_to?(:fetch_query)
  cql_limit || 50
end

module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  def quick_edit
    card.left.prototype_default_card.try(:show_content_options?) ? super : ""
  end

  def quick_editor
    wrap_type_formgroup do
      type_field class: "type-field rule-type-field _submit-on-select"
    end +
      wrap_content_formgroup do
        text_field :content, class: "d0-card-content _submit-after-typing"
      end
  end

  def visible_cardtype_groups
    { "Organize" => %w[List Pointer] }
  end
end
end;end;end;end;
# ~~ generated from /Users/ezl5238/dev/decko/gem/mod/list/set/right/content_options.rb ~~

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
card-1.102.0 tmpsets/set/mod008-list/right/content_options.rb