Sha256: 4bc35e57e9e186086cabf93b99fac8e9a559793473934d5cc9d42c90f56350c8
Contents?: true
Size: 376 Bytes
Versions: 9
Compression:
Stored size: 376 Bytes
Contents
module Components::CollapsibleHelper def collapsible_preview(&block) content_for :preview, capture(&block) if block end def collapsible_body(&block) content_for :body, capture(&block) if block end def render_collapsible(**options, &block) content = capture(&block) if block render "components/ui/collapsible", content: content, **options end end
Version data entries
9 entries across 9 versions & 1 rubygems