Class: Phlexi::Display::Components::Url

Inherits:
Base
  • Object
show all
Includes:
Concerns::DisplaysValue
Defined in:
lib/phlexi/display/components/url.rb

Instance Attribute Summary

Attributes inherited from Base

#key, #object

Instance Method Summary collapse

Methods included from Concerns::DisplaysValue

#view_template, #wrapped

Methods inherited from Base

#display_template, #initialize, inline, #view_template

Constructor Details

This class inherits a constructor from Phlexi::Display::Base

Instance Method Details

#render_value(value) ⇒ Object



9
10
11
12
13
14
# File 'lib/phlexi/display/components/url.rb', line 9

def render_value(value)
  a(**attributes, href: value, target: "_blank") {
    icon
    plain value
  }
end