Details
Parameters
Examples
Example 1: Render options[:text] param in <summary>
<summary>details id: 'foo', class: 'bar' do
summary text: 'Greetings'
plain "Hello World!" # optional content
end<details id="foo" class="bar">
<summary>Greetings</summary>
Hello World!
</details>Example 2: Yield a given block in <summary>
<summary>details id: 'foo', class: 'bar' do
summary do
plain 'Greetings'
end
paragraph text: 'Hello World!'
endExample 3: Using <detail> without <summary>
<detail> without <summary>Last updated
Was this helpful?