appswithlove / statamic-charfield
Character counting field for statamic v3 and v4
Installs: 1 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 2
Open Issues: 4
Type:statamic-addon
Requires
- statamic/cms: ~3.1.7 || 3.2.* || 3.3.* || 3.4.* || ^4.0 || ^5.0
README
An input field or textarea which shows the status of the length with colored feedback on the input element.
Configuration
Option | Description |
---|---|
input_type |
Choose between input or textarea |
min |
Minimal length |
max |
Maximal length |
optimal_min |
Optional min length for optimal result |
optimal_max |
Optional max length for optimal result |
hard_limit |
Maxlength for input field |
- If the length is outside of min and max the color is red.
- If the length is between min and max but not between the optimal length dark yellow
- If the length is in the optional range or between min and max if no optimal length is provided the color is green