Class: Koi::Tables::Cells::LinkComponent

Inherits:
Katalyst::Tables::CellComponent
  • Object
show all
Defined in:
app/components/koi/tables/cells/link_component.rb

Overview

Displays a link to the record The link text is the value of the attribute

Defined Under Namespace

Classes: WrapperComponent

Instance Method Summary collapse

Constructor Details

#initialize(url:, default_url:, link:) ⇒ LinkComponent

Returns a new instance of LinkComponent.



9
10
11
12
13
# File 'app/components/koi/tables/cells/link_component.rb', line 9

def initialize(url:, default_url:, link:, **)
  super(**)

  with_content_wrapper(WrapperComponent.new(cell: self, url:, default_url:, **link))
end