Sha256: bd0575574b1c82ea505b567598b33e9c33765bb6384465c0c878d5bb820c8c95
Contents?: true
Size: 684 Bytes
Versions: 107
Compression:
Stored size: 684 Bytes
Contents
<% id ||= "character-count-#{SecureRandom.hex(4)}" maxlength ||= nil maxwords ||= nil threshold ||= nil textarea ||= {} %> <%= content_tag :div, class: "gem-c-character-count govuk-character-count", data: { module: "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 %>
Version data entries
107 entries across 107 versions & 1 rubygems