Class: Uistiti::Alpha::ImagePreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- Uistiti::Alpha::ImagePreview
- Defined in:
- app/components/previews/uistiti/alpha/image_preview.rb
Sizes collapse
Instance Method Summary collapse
Instance Method Details
#large ⇒ Object
20 21 22 |
# File 'app/components/previews/uistiti/alpha/image_preview.rb', line 20 def large render(Uistiti::Alpha::Image.new(source: 'https://www.lesterresdenatae.fr/wp-content/uploads/2022/05/Masque-20.png', size: :large)) end |
#medium ⇒ Object
16 17 18 |
# File 'app/components/previews/uistiti/alpha/image_preview.rb', line 16 def medium render(Uistiti::Alpha::Image.new(source: 'https://www.lesterresdenatae.fr/wp-content/uploads/2022/05/Masque-20.png', size: :medium)) end |
#playground(source: 'https://www.lesterresdenatae.fr/wp-content/uploads/2022/05/Masque-20.png', size: 'large') ⇒ Object
39 40 41 |
# File 'app/components/previews/uistiti/alpha/image_preview.rb', line 39 def playground(source: 'https://www.lesterresdenatae.fr/wp-content/uploads/2022/05/Masque-20.png', size: 'large') render(Uistiti::Alpha::Image.new(source: , size:)) end |
#small ⇒ Object
12 13 14 |
# File 'app/components/previews/uistiti/alpha/image_preview.rb', line 12 def small render(Uistiti::Alpha::Image.new(source: 'https://www.lesterresdenatae.fr/wp-content/uploads/2022/05/Masque-20.png', size: :small)) end |