app/components/coco/modals/modal/modal.rb in coveragebook_components-0.19.4 vs app/components/coco/modals/modal/modal.rb in coveragebook_components-0.19.5

- old
+ new

@@ -19,9 +19,16 @@ lightbox: ->(id: nil, **kwargs, &block) do @container_type = :lightbox @container_id = id Coco::ModalLightbox.new(dismissable: get_option_value(:dismissable), id:, **kwargs) + end, + + canvas: ->(id: nil, **kwargs, &block) do + @container_content = block + @container_id = id + @container_type = :canvas + Coco::ModalCanvas.new(dismissable: get_option_value(:dismissable), id:, **kwargs) end } before_render do if container? && title? && container.respond_to?(:with_title)