Skip to content

Added display cutoffs#37

Merged
ractoon merged 2 commits intoractoon:masterfrom
trevorloflin:trevorloflin-feature/count-display-limits
Nov 16, 2017
Merged

Added display cutoffs#37
ractoon merged 2 commits intoractoon:masterfrom
trevorloflin:trevorloflin-feature/count-display-limits

Conversation

@trevorloflin
Copy link
Contributor

I added the minDisplayCutoff and maxDisplayCutoff options. When set, these hide the counter when the current count is sufficiently far from the limits. E.g. if the max option is set to 1000 and the maxDisplayCutoff option is set to 100, the counter will only appear if the user enters at least 900 characters. Conversely if the min option is set to 1000 and the minDisplayCutoff is set to 100, the counter will only appear if the user has entered 1100 characters or less. This can create a less obtrusive experience for the user.

Feel free to make any tweaks necessary to bring it into line with the project.

@trevorloflin
Copy link
Contributor Author

@ractoon, any feedback?

@ractoon
Copy link
Owner

ractoon commented Nov 13, 2017

Hi @trevorloflin,

Thanks for the pull request. This looks great! I'd just like to address this and a couple other items this week.

ractoon added a commit that referenced this pull request Nov 16, 2017
@ractoon ractoon merged commit 953eafd into ractoon:master Nov 16, 2017
@ractoon ractoon mentioned this pull request Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments