Sha256: 049b00255b5fda310d9b3581059eab9015439b00f05a642ab1db916a960a6aa7
Contents?: true
Size: 847 Bytes
Versions: 19
Compression:
Stored size: 847 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"> <%= t("components.character_count", number: maxlength || maxwords, type: maxwords ? t("components.character_count.type.words") : t("components.character_count.type.characters")) %> </span> <% end %> <% end %>
Version data entries
19 entries across 19 versions & 1 rubygems