<% row = cell(:elements, :row).new block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12') code = cell(:elements, :code).new %> <%=raw row.open %> <%=raw block.open %> <%=raw cell(:elements, :title).new(label: 'Fields: Relay') %>

A field used to group other fields and create new one at runtime.

<%=raw block.close %> <%=raw row.close %> <%=raw row.open %> <%=raw block.open %> <%=raw cell(:elements, :title).new(label: 'Configuration', size: 4) %>

The configuration option should be:

<%=raw code.open %> field_key: type: relay position: 1 <%=raw code.close %>

You can set a custom label with a label option:

<%=raw code.open %> field_key: type: relay position: 1 label: Insert here the text <%=raw code.close %>

You can set a custom classes for the input with the class option:

<%=raw code.open %> field_key: type: relay position: 1 class: xs-12 sm-12 md-6 lg-6 <%=raw code.close %>

You can specify the list of fields for the relay field with the fields option:

<%=raw code.open %> field_key: type: relay position: 1 fields: field_key_1: type: field_type field_key_2: type: field_type <%=raw code.close %> <%=raw block.close %> <%=raw row.close %>