Class: Pageflow::Admin::IconLinkTo

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/icon_link_to.rb

Overview

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#build(path, options = {}) ⇒ Object

Since:

  • 12.2



6
7
8
# File 'app/views/components/pageflow/admin/icon_link_to.rb', line 6

def build(path, options = {})
  text_node(link_to(tooltip_span(options), path, class: options[:class]))
end

#tag_nameObject

Since:

  • 12.2



10
11
12
# File 'app/views/components/pageflow/admin/icon_link_to.rb', line 10

def tag_name
  'span'
end