Class: RUI::Card::Header

Inherits:
Base
  • Object
show all
Defined in:
lib/rui/card.rb

Defined Under Namespace

Classes: Titles

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RUI::Base

Instance Method Details

#actionsObject



43
44
45
# File 'lib/rui/card.rb', line 43

def actions(&)
  div(class: "flex flex-row gap-2 items-center", &)
end

#thumbnailObject



35
36
37
# File 'lib/rui/card.rb', line 35

def thumbnail(&)
  img(src: capture(&), class: "inline-block rounded-full size-10")
end

#titlesObject



39
40
41
# File 'lib/rui/card.rb', line 39

def titles(&)
  render Titles.new(&)
end

#view_templateObject



31
32
33
# File 'lib/rui/card.rb', line 31

def view_template(&)
  header(class: "flex flex-row justify-between items-center gap-4 px-4", &)
end