Del

Component Documentation

matestack core component: Del

Show specs

The HTML del tag implemented in ruby.

Parameters

This component can take 2 optional configuration params and either yield content or display what gets passed to the text configuration param.

# id (optional)

Expects a string with all ids the del should have.

# class (optional)

Expects a string with all classes the del should have.

# cite (optional)

Expects a string with a URL to a document that explains the reason why the text was deleted.

# datetime (optional)

Expects a string which specifies the date and time of when the text was deleted.

Example 1: Yield a given block

del id: "foo", class: "bar" do
  plain 'Hello World' # optional content
end

returns

<del id="foo" class="bar">
  Hello World
</del>

Example 2: Render options[:text] param

del id: "foo", class: "bar", text: 'Hello World'

returns

<del id="foo" class="bar">
  Hello World
</del>