Sha256: 357b20a292924fade2c5187f99a0f1fad3ea1f5cf3ca5f2db2dc21e6e96bac56
Contents?: true
Size: 422 Bytes
Versions: 92
Compression:
Stored size: 422 Bytes
Contents
module Pageflow module Admin class IconLinkTo < ViewComponent builder_method :icon_link_to def build(path, options = {}) text_node(link_to(tooltip_span(options), path, class: options[:class])) end def tag_name 'span' end private def tooltip_span(options) content_tag(:span, options[:tooltip], class: 'tooltip_bubble') end end end end
Version data entries
92 entries across 92 versions & 1 rubygems