Improve input with phone number mask
Description The goal would be to add a phone number mask if needed.
Acceptance Criteria
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%
- [ ] Propagate any change on the demos and run all of them to ensure there is no breaking change
- [ ] Ensure any change is well documented
we could extend the mode property to support phone numbers
hello! I am a first time contributor do you think I could be assigned for this issue?
Hi @ioannastantzou, and thank you for volunteering to make Taipy better. We wanted to have some more time to think about how to handle this issue.
There are several problems to handle for that feature:
- There is no such thing as a generic 'phone number' mask.
- I see no reason why only phone number input would be guided. That should apply to anything that has a format (social security number, zipcode...)
- Because the feature really shines on the front-end (with an instant validation of the input), this requires an implementation in JavaScript. However, the mask itself (or a validation callback function) must be defined on the back-end in Python. We need to come up with a way to inter-operate easily.
If you have any thoughts on these rabbit holes, please let us know. I'm afraid there's nothing that can be done until these are solved. That impacts both requirements and implementation considerations.