platform
platform copied to clipboard
Text selection API for text input fields
trafficstars
Description
Introduce text selection API for text-field based input components.
Use cases
As a developer I want to operate with selected text ranges of the input fields So that I can set text selection ranges as well as set cursor position.
Acceptance criteria
- [ ] API for setting and getting selection ranges should be implemented in web-components
- [ ] API for setting and getting cursor position should be implemented in web-components
- [ ] Should be introduced as an interface that could be implemented by input components (flow component)
- [ ] Should have API for selecting range with two int parameters: start and end (flow component)
- [ ] Should have API for setting cursor position as int (flow component)
- [ ] Introduce convenience methods for
selectAllanddeselectAll
General criteria
- [ ] APIs reviewed
- [ ] Performance
- [ ] UX/DX tests in Alpha
- [ ] Documentation:
- [ ] How to test?
- [ ] Limitations:
- No getters for flow component for now, might be considered as a separate enhancement