Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text middle ellipsis directive #108

Open
leonid opened this issue Sep 11, 2024 · 0 comments
Open

Text middle ellipsis directive #108

leonid opened this issue Sep 11, 2024 · 0 comments
Assignees
Milestone

Comments

@leonid
Copy link
Collaborator

leonid commented Sep 11, 2024

A Text Middle Ellipsis directive is a UI utility that truncates text in the middle and replaces the truncated part with an ellipsis (...). This is particularly useful for displaying long strings, such as file paths or URLs, where the beginning and end of the string are more important than the middle. Here are the key features a Text Middle Ellipsis directive should have:

  1. Dynamic Truncation: Automatically truncate text based on the available space.
  2. Customizable Ellipsis: Allow customization of the ellipsis character or string.
  3. Responsive Design: Adapt to different screen sizes and orientations.
  4. Tooltip Support: Option to show the full text in a tooltip on hover.
  5. Accessibility: Ensure the truncated text is accessible, possibly by providing the full text in an accessible manner.
  6. Configurable Threshold: Allow configuration of the minimum length before truncation is applied.
  7. Performance Optimization: Efficiently handle text truncation to avoid performance issues.
  8. Integration with CSS: Work seamlessly with CSS for styling and layout adjustments.
  9. Event Handling: Emit events when truncation occurs or when the user interacts with the truncated text.
  10. Support for Different Elements: Apply the directive to various HTML elements, such as div, span, or p.

These features ensure that the Text Middle Ellipsis directive is versatile, user-friendly, and accessible.

@leonid leonid self-assigned this Sep 11, 2024
@leonid leonid added this to the Alpha release milestone Sep 11, 2024
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

No branches or pull requests

1 participant