Skip to content

Formatter feature request (text limit / word wrap) #3

Open
@mklemarczyk

Description

@mklemarczyk

I do not have concept to implement this thing, but I think that it can be extension to asText formatter method.

First, there are a few methods of word wrapping:

  • Strict (as much as possible characters, can break the word)
  • Word rounded up (include last word that reach the limit)
  • Word rounded down (include last word before reach the limit)

I want use word wrapping to limit text.
I know that I should use substr, but this method will break last word.
There is also wordwrap, but first it does have third wrapping method, and secondly it only insert break line character.

This feature can be used in:

  • DataGrid columns and DetailView to display first few words of content,
  • Headers on page and page title, when it use some field that can be too long. (For example "question content" on "question update page",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions