Class: FeedComponent

Inherits:
Component show all
Defined in:
app/components/feed_component.rb

Overview

Feed — activity/event feed.

Usage:

Feed(size: "small") {
  FeedEvent { |e| ... }
}

Constant Summary

Constants inherited from Component

Component::HTML_OPTIONS

Instance Method Summary collapse

Methods inherited from Component

default, #initialize, #render_in, slot

Constructor Details

This class inherits a constructor from Component

Instance Method Details

#to_sObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/components/feed_component.rb', line 19

def to_s
  classes = class_names(
    "ui",
    size,
    color,
    { "inverted" => inverted },
    { "connected" => connected },
    { "ordered" => ordered },
    { "divided" => divided },
    { "disabled" => disabled },
    "feed"
  )

  tag.div(**merge_html_options(class: classes)) { @content }
end