Class: FoxTail::Timeline::EntryComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/fox_tail/timeline/entry_component.rb

Instance Method Summary collapse

Instance Method Details

#before_renderObject



55
56
57
58
59
60
# File 'app/components/fox_tail/timeline/entry_component.rb', line 55

def before_render
  super

  with_dot_indicator unless visual?
  html_attributes[:class] = classnames theme.apply(:root, self), html_class
end

#render?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'app/components/fox_tail/timeline/entry_component.rb', line 51

def render?
  content?
end