Skip to content

[KTextbox] Add slots to append elements before or after input #1113

@MisRob

Description

@MisRob

🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
  • Confirm that you’ve read the guidelines in your comment.

Sub-issue of learningequality/studio#5060.

Complexity: Medium

Summary

Add 4 new slots to KTextbox via which it will be possible to append elements before or after input, outside as well as inside:

  • innerBefore
  • innerAfter
  • outerBefore
  • outerAfter

When content placed to inner slots, ensure that typing cursor starts after / ends before the slot area (= input text never overlaps slot areas).

These slots will be used for use-cases such as:

Guidance

Acceptance criteria

  • Is LTR and RTL compliant
  • KTextbox documentation page has live examples demonstrating use of the slots
  • There are visual tests

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions