Sha256: 311b9e3b4188e1aab8185833f115a5054c2fb1646f39d2bc79ef894e8f1cd8d0
Contents?: true
Size: 756 Bytes
Versions: 148
Compression:
Stored size: 756 Bytes
Contents
<% id ||= "character-count-#{SecureRandom.hex(4)}" maxlength ||= nil maxwords ||= nil threshold ||= nil textarea ||= {} %> <% if maxlength || maxwords %> <%= content_tag :div, class: "gem-c-character-count govuk-character-count", data: { module: "govuk-character-count", maxlength: maxlength, maxwords: maxwords, threshold: threshold } do %> <%= render "govuk_publishing_components/components/textarea", { id: id, character_count: true }.merge(textarea.symbolize_keys) %> <span id="<%= id %>-info" class="govuk-hint govuk-character-count__message" aria-live="polite"> You can enter up to <%= maxlength || maxwords %> <%= maxwords ? 'words' : 'characters' %> </span> <% end %> <% end %>
Version data entries
148 entries across 148 versions & 1 rubygems