feat: counterFormatter for counter string in ion-item
#24327
Labels
package: core
@ionic/core package
type: feature request
a new feature, enhancement, or improvement
v6
issues specific to Framework v6
Prerequisites
Describe the Feature Request
Introduced in v6 is the ability for developers to use
counter
with anion-item
, to display max length validation to the user. Developers should have complete control over the formatted appearance of this counter. Currently they are stuck with5 / 10
formatting.Describe the Use Case
Users that are less technical or are unfamiliar of max length formatting, may be confused when seeing a
5 / 10
label. This feature would allow developers to customize the format of the display to say "4 characters remaining" or "5 out of 10 words".Describe Preferred Solution
ion-item
exposes a formatter function that takes in the input's text content length and the max length validation and returns a formatted string.Describe Alternatives
No response
Related Code
Additional Information
No response
The text was updated successfully, but these errors were encountered: