plotly / dash-core-components

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
270 stars 147 forks source link

Feature Request: Add a max character/digit limit on the Input component #994

Open TashaStenner opened 2 years ago

TashaStenner commented 2 years ago

Is there any work being done on restricting the number of characters or digits being entered?

For example: restricting the user to input 0-99 and 2 decimal places.

At the minute you are able to add either the step or the pattern attribute to the input which will make the input invalid and give's the user a helpful tooltip. However, this doesn't restrict the user's input at all.

Could you add a feature/attribute that would stop a user from entering more than _n decimal places/ _n character's.