Param

Component Documentation

matestack core component: Param

Show specs

The HTML <param> tag implemented in ruby.

Parameters

This component can take 4 optional configuration params.

# id (optional)

Expects a string with all ids the <param> should have.

# class (optional)

Expects a string with all classes the <param> should have.

# name (optional)

Specifies the name of a parameter.

# value (optional)

Specifies the value of the parameter

Example 1:

param name: 'autoplay', value: 'true'

returns

<param name="autoplay" value="true">

Example 2:

param name: 'autoplay', value: 'true', id: 'my-id', class: 'my-class'

returns

<param id="my-id" name="autoplay" value="true" class="my-class">