Sha256: 17ccd0598b227df13a8159e33ab1d6cfff2c1fa8e0ead46b3bff7fc3b70bbb51

Contents?: true

Size: 1.39 KB

Versions: 6

Compression:

Stored size: 1.39 KB

Contents

<%
  row = cell(:elements, :row).new
  block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12')
  code = cell(:elements, :code).new
%>

<!-- PRESENTATION -->
<%=raw row.open %>

  <%=raw block.open %>

    <%=raw cell(:elements, :title).new(label: 'Fields: Relay') %>

    <p>A field used to group other fields and create new one at runtime.</p>

  <%=raw block.close %>

<%=raw row.close %>
<!-- / PRESENTATION -->

<!-- CONFIGURATION SECTION -->
<%=raw row.open %>

<%=raw block.open %>

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

<p>
The configuration option should be:
</p>

<%=raw code.open %>

field_key:
    type: relay
    position: 1

<%=raw code.close %>

<p>
You can set a custom label with a label option:
</p>

<%=raw code.open %>

field_key:
    type: relay
    position: 1
    label: Insert here the text

<%=raw code.close %>

<p>
You can set a custom classes for the input with the class option:
</p>

<%=raw code.open %>

field_key:
    type: relay
    position: 1
    class: xs-12 sm-12 md-6 lg-6

<%=raw code.close %>


<p>
You can specify the list of fields for the relay field with the fields option:
</p>

<%=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 %>
<!-- / CONFIGURATION SECTION -->

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lato_blog-2.2.2 app/views/lato_blog/doc/fields/relay.html.erb
lato_blog-2.2.1 app/views/lato_blog/doc/fields/relay.html.erb
lato_blog-2.2.0 app/views/lato_blog/doc/fields/relay.html.erb
lato_blog-2.1.2 app/views/lato_blog/doc/fields/relay.html.erb
lato_blog-2.1.1 app/views/lato_blog/doc/fields/relay.html.erb
lato_blog-2.1 app/views/lato_blog/doc/fields/relay.html.erb