Sha256: 827a0ded4f8fb98db63aaa7e75578dd490ed8769a1fb405fb1cd31d04ca3badb
Contents?: true
Size: 418 Bytes
Versions: 87
Compression:
Stored size: 418 Bytes
Contents
module Pageflow module Admin class EmbedCodeField < Pageflow::ViewComponent builder_method :embed_code_field def build(snippet, options = {}) super(class: 'embed_code') text_node(text_field_tag(options.fetch(:name), snippet.call, onclick: '$(this).select()')) para(options[:hint]) end end end end
Version data entries
87 entries across 87 versions & 1 rubygems