Sha256: 9601f46ead59122625e5eed6a1a6fccb51dadb845ef35a63a5c823d6d524f311
Contents?: true
Size: 452 Bytes
Versions: 72
Compression:
Stored size: 452 Bytes
Contents
module Coco class ImageUploader < Coco::Component include Concerns::AcceptsOptions accepts_option :click, from: [true, false], default: true accepts_option :drop, from: [true, false], default: true attr_reader :name, :accept def initialize(accept: "image/*", **kwargs) @accept = accept end def clickable? get_option_value(:click) end def droppable? get_option_value(:drop) end end end
Version data entries
72 entries across 72 versions & 1 rubygems