Sha256: 389dd1da8815bcbbe2f1930a0723178dc763dfbd44fc7d969c579b5e3d819c8f

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 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: Text') %>

    <p>A normal text input.</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: text
    position: 1

<%=raw code.close %>

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

<%=raw code.open %>

field_key:
    type: text
    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: text
    position: 1
    class: xs-12 sm-12 md-6 lg-6

<%=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/text.html.erb
lato_blog-2.2.1 app/views/lato_blog/doc/fields/text.html.erb
lato_blog-2.2.0 app/views/lato_blog/doc/fields/text.html.erb
lato_blog-2.1.2 app/views/lato_blog/doc/fields/text.html.erb
lato_blog-2.1.1 app/views/lato_blog/doc/fields/text.html.erb
lato_blog-2.1 app/views/lato_blog/doc/fields/text.html.erb