Details
The HTML <details>
and <summary>
tags, implemented in Ruby.
Parameters
The <summary >
tag either yields content or displays what gets passed to the text
configuration param. Both <details>
and <summary>
tag accept all the canonical HTML global attributes like id
or class
.
Examples
Example 1: Render options[:text] param in <summary>
<summary>
Example 2: Yield a given block in <summary>
<summary>
Example 3: Using <detail>
without <summary>
<detail>
without <summary>
Last updated