Method: BulmaX::Card::CardHead#view_template

Defined in:
lib/bulma_x/card.rb

#view_templateObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/bulma_x/card.rb', line 26

def view_template
  super do
    if slot?(:image)
      slot(:figure, fullwidth: true, extra_classes: 'card-image', ratio: '16x9') do
        slot(:image, fullwidth: true)
      end
    else
      slot(:title)
    end
  end
end