Closed (fixed)
Project:
Textfield Counter
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 May 2018 at 07:49 UTC
Updated:
15 Oct 2018 at 23:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
r.nabiullin commentedComment #3
r.nabiullin commentedWith this patch will be opportunity use custom template for each field.
Comment #4
r.nabiullin commentedSame patch with schema.
Comment #5
oleksiyThese replace will override the template which will be used in the Drupal.t() later, that may create confusion with translations. Because a user will want to translate his template without any HTML code.
Maybe will be better to add this tags directly in Drupal.l() when the placeholders set, if they really need here. What do you think?
Comment #6
jaypanComment #8
jaypanI went at this a different way. In the interests of keeping all settings in a single location, I added this as a setting for the widget, so it can be configured on a per-instance basis. Available message variables are below. Note that the remaining count and current count must be wrapped in an element with the HTML class in the brackets, in order for the value to be auto updated as the user types.
@remaining_count (.remaining_count)
@current_count (.current_count)
@maxlength