Class: RUI::Card::Header
Defined Under Namespace
Classes: Titles
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RUI::Base
Instance Method Details
#actions ⇒ Object
43 44 45 |
# File 'lib/rui/card.rb', line 43 def actions(&) div(class: "flex flex-row gap-2 items-center", &) end |
#thumbnail ⇒ Object
35 36 37 |
# File 'lib/rui/card.rb', line 35 def thumbnail(&) img(src: capture(&), class: "inline-block rounded-full size-10") end |
#titles ⇒ Object
39 40 41 |
# File 'lib/rui/card.rb', line 39 def titles(&) render Titles.new(&) end |
#view_template ⇒ Object
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 |